aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/org/traccar/manager/MainActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/org/traccar/manager/MainActivity.java')
-rw-r--r--app/src/main/java/org/traccar/manager/MainActivity.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/org/traccar/manager/MainActivity.java b/app/src/main/java/org/traccar/manager/MainActivity.java
index 39d04ec..fd4c23b 100644
--- a/app/src/main/java/org/traccar/manager/MainActivity.java
+++ b/app/src/main/java/org/traccar/manager/MainActivity.java
@@ -33,8 +33,7 @@ public class MainActivity extends Activity {
}
private void initContent() {
- String url = PreferenceManager.getDefaultSharedPreferences(this).getString(PREFERENCE_URL, null);
- if (url != null) {
+ if (PreferenceManager.getDefaultSharedPreferences(this).contains(PREFERENCE_URL)) {
getFragmentManager().beginTransaction().add(android.R.id.content, new MainFragment()).commit();
} else {
getFragmentManager().beginTransaction().add(android.R.id.content, new StartFragment()).commit();