Fix state loss crashes

This commit is contained in:
Cameron Gutman
2015-01-25 21:04:13 -05:00
parent 1cba278876
commit 4b1c7e7e3c
2 changed files with 2 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ public class AppView extends Activity implements AdapterFragmentCallbacks {
}
getFragmentManager().beginTransaction()
.add(R.id.appFragmentContainer, new AdapterFragment()).commit();
.add(R.id.appFragmentContainer, new AdapterFragment()).commitAllowingStateLoss();
}
@Override

View File

@@ -124,7 +124,7 @@ public class PcView extends Activity implements AdapterFragmentCallbacks {
});
getFragmentManager().beginTransaction()
.add(R.id.pcFragmentContainer, new AdapterFragment()).commit();
.add(R.id.pcFragmentContainer, new AdapterFragment()).commitAllowingStateLoss();
noPcFoundLayout = (RelativeLayout) findViewById(R.id.no_pc_found_layout);
if (pcGridAdapter.getCount() == 0) {