mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-23 00:27:40 +00:00
Fix state loss crashes
This commit is contained in:
1 parent
1cba278876
commit
4b1c7e7e3c
2 files changed
+2
-2
No files matched your search
@@ -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