From 8d416f1c61bb07731414ffdd05fdfc47c73fff8d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 6 Sep 2017 09:57:08 +1200 Subject: Fix reported crash issue --- app/src/main/java/org/traccar/manager/StartFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- cgit v1.2.3