From 3c2e7ddf76f6178246e5bc5ec310665511b23907 Mon Sep 17 00:00:00 2001 From: Catfriend1 Date: Thu, 28 Feb 2019 08:20:01 +0100 Subject: [PATCH] fragmentManager: commitAllowingStateLoss (fixes #321) (#342) --- .../com/nutomic/syncthingandroid/activities/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java b/app/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java index 664c0287..8f03303a 100644 --- a/app/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java +++ b/app/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java @@ -208,7 +208,7 @@ public class MainActivity extends SyncthingActivity } } - fm.beginTransaction().replace(R.id.drawer, mDrawerFragment).commit(); + fm.beginTransaction().replace(R.id.drawer, mDrawerFragment).commitAllowingStateLoss(); mDrawerToggle = new Toggle(this, mDrawerLayout); mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED); mDrawerLayout.addDrawerListener(mDrawerToggle);