Commit 4d4a8b07 authored by Adrien Maglo's avatar Adrien Maglo
Browse files

Main activity: fix a crash on activity starting

parent ce8b48e8
......@@ -363,6 +363,8 @@ public class MainActivity extends SherlockFragmentActivity {
*/
if(current == null || (!current.getTag().equals(mCurrentFragment) && found)) {
Log.d(TAG, "Reloading displayed fragment");
if (secondaryFragments.contains(mCurrentFragment))
mCurrentFragment = "video";
Fragment ff = getFragment(mCurrentFragment);
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
ft.replace(R.id.fragment_placeholder, ff, mCurrentFragment);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment