aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/org/traccar/manager/StartFragment.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/org/traccar/manager/StartFragment.java')
-rw-r--r--app/src/main/java/org/traccar/manager/StartFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/org/traccar/manager/StartFragment.java b/app/src/main/java/org/traccar/manager/StartFragment.java
index c88c260..ca762f7 100644
--- a/app/src/main/java/org/traccar/manager/StartFragment.java
+++ b/app/src/main/java/org/traccar/manager/StartFragment.java
@@ -103,7 +103,7 @@ public class StartFragment extends Fragment implements View.OnClickListener {
PreferenceManager.getDefaultSharedPreferences(getActivity())
.edit().putString(MainActivity.PREFERENCE_URL, serverField.getText().toString()).apply();
getActivity().getFragmentManager()
- .beginTransaction().replace(android.R.id.content, new MainFragment()).commit();
+ .beginTransaction().replace(android.R.id.content, new MainFragment()).commitAllowingStateLoss();
}
private void onError() {