aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-09-06 09:57:08 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-09-06 09:57:08 +1200
commit8d416f1c61bb07731414ffdd05fdfc47c73fff8d (patch)
treeb11b4be4c7498873c58c34aa234b86d036a28f67
parent701b24646322ad70a176feeb9f4404e12c613ad1 (diff)
downloadetbsa-traccar-manager-android-8d416f1c61bb07731414ffdd05fdfc47c73fff8d.tar.gz
etbsa-traccar-manager-android-8d416f1c61bb07731414ffdd05fdfc47c73fff8d.tar.bz2
etbsa-traccar-manager-android-8d416f1c61bb07731414ffdd05fdfc47c73fff8d.zip
Fix reported crash issue
-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() {