mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-19 23:10:11 +00:00
Fix state loss crashes
This commit is contained in:
@@ -105,7 +105,7 @@ public class AppView extends Activity implements AdapterFragmentCallbacks {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getFragmentManager().beginTransaction()
|
getFragmentManager().beginTransaction()
|
||||||
.add(R.id.appFragmentContainer, new AdapterFragment()).commit();
|
.add(R.id.appFragmentContainer, new AdapterFragment()).commitAllowingStateLoss();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ public class PcView extends Activity implements AdapterFragmentCallbacks {
|
|||||||
});
|
});
|
||||||
|
|
||||||
getFragmentManager().beginTransaction()
|
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);
|
noPcFoundLayout = (RelativeLayout) findViewById(R.id.no_pc_found_layout);
|
||||||
if (pcGridAdapter.getCount() == 0) {
|
if (pcGridAdapter.getCount() == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user