From 6eeb161036b19873e9f815d4da1d8c99630df39f Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 1 Aug 2014 23:40:05 +0200 Subject: [PATCH] Removed exit button (closes #6). This has become useless, as the service would be automatically restarted whenever a network/battery/boot intent is received. --- .../com/nutomic/syncthingandroid/gui/MainActivity.java | 5 ----- src/main/res/menu/main.xml | 4 ---- src/main/res/values/strings.xml | 7 ++++--- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/nutomic/syncthingandroid/gui/MainActivity.java b/src/main/java/com/nutomic/syncthingandroid/gui/MainActivity.java index 37cebc9d..547f4b2a 100644 --- a/src/main/java/com/nutomic/syncthingandroid/gui/MainActivity.java +++ b/src/main/java/com/nutomic/syncthingandroid/gui/MainActivity.java @@ -285,11 +285,6 @@ public class MainActivity extends ActionBarActivity case R.id.settings: startActivity(new Intent(this, SettingsActivity.class)); return true; - case R.id.exit: - // Make sure we unbind first. - finish(); - getApplicationContext().stopService(new Intent(this, SyncthingService.class)); - return true; default: return super.onOptionsItemSelected(item); } diff --git a/src/main/res/menu/main.xml b/src/main/res/menu/main.xml index f8a5700b..028cfe46 100644 --- a/src/main/res/menu/main.xml +++ b/src/main/res/menu/main.xml @@ -29,8 +29,4 @@ android:id="@+id/settings" android:title="@string/settings_title" /> - - diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index fa21062b..6d6843cb 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -176,9 +176,6 @@ Please install a scanner or enter the node ID manually. Generating keys. This may take a while. - - Exit - First Start @@ -241,8 +238,12 @@ If this error persists, try reinstalling the app and restarting your device.\n\n Do you want to change your preferences? + Change Settings + + Exit +