From c59fa5357fab0d6807401daeee00916299796e03 Mon Sep 17 00:00:00 2001 From: Volker Richert <v.richert@addmore.de> Date: Sat, 5 Nov 2016 12:53:50 +0100 Subject: [PATCH] remove appindex stuff --- .../android/medtronic/MainActivity.java | 44 ------------------- 1 file changed, 44 deletions(-) diff --git a/app/src/main/java/info/nightscout/android/medtronic/MainActivity.java b/app/src/main/java/info/nightscout/android/medtronic/MainActivity.java index 4f1c4f9..ea3768d 100644 --- a/app/src/main/java/info/nightscout/android/medtronic/MainActivity.java +++ b/app/src/main/java/info/nightscout/android/medtronic/MainActivity.java @@ -88,11 +88,6 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc private Handler mUiRefreshHandler = new Handler(); private Runnable mUiRefreshRunnable = new RefreshDisplayRunnable(); private Realm mRealm; - /** - * ATTENTION: This was auto-generated to implement the App Indexing API. - * See https://g.co/AppIndexing/AndroidStudio for more information. - */ - private GoogleApiClient client; public static void setActivePumpMac(long pumpMac) { activePumpMac = pumpMac; @@ -215,9 +210,6 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc mTextViewLog = (TextView) findViewById(R.id.textview_log); mChart = (LineChart) findViewById(R.id.chart); - // ATTENTION: This was auto-generated to implement the App Indexing API. - // See https://g.co/AppIndexing/AndroidStudio for more information. - client = new GoogleApiClient.Builder(this).addApi(AppIndex.API).build(); } @Override @@ -472,42 +464,6 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc return mActivePump; } - /** - * ATTENTION: This was auto-generated to implement the App Indexing API. - * See https://g.co/AppIndexing/AndroidStudio for more information. - */ - public Action getIndexApiAction() { - Thing object = new Thing.Builder() - .setName("Main Page") // TODO: Define a title for the content shown. - // TODO: Make sure this auto-generated URL is correct. - .setUrl(Uri.parse("http://[ENTER-YOUR-URL-HERE]")) - .build(); - return new Action.Builder(Action.TYPE_VIEW) - .setObject(object) - .setActionStatus(Action.STATUS_TYPE_COMPLETED) - .build(); - } - - @Override - public void onStart() { - super.onStart(); - - // ATTENTION: This was auto-generated to implement the App Indexing API. - // See https://g.co/AppIndexing/AndroidStudio for more information. - client.connect(); - AppIndex.AppIndexApi.start(client, getIndexApiAction()); - } - - @Override - public void onStop() { - super.onStop(); - - // ATTENTION: This was auto-generated to implement the App Indexing API. - // See https://g.co/AppIndexing/AndroidStudio for more information. - AppIndex.AppIndexApi.end(client, getIndexApiAction()); - client.disconnect(); - } - private class StatusMessageReceiver extends BroadcastReceiver { private class StatusMessage { private long timestamp; -- GitLab