mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-02-16 10:31:07 +00:00
Fix state loss crashes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user