1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-29 15:51:17 +00:00

fragmentManager: commitAllowingStateLoss (fixes #321) (#342)

This commit is contained in:
Catfriend1 2019-02-28 08:20:01 +01:00 committed by GitHub
parent f9f93a37ce
commit 3c2e7ddf76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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); mDrawerToggle = new Toggle(this, mDrawerLayout);
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED); mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED);
mDrawerLayout.addDrawerListener(mDrawerToggle); mDrawerLayout.addDrawerListener(mDrawerToggle);