mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 21:10:11 -07:00
Make the launcher fully reapply the layout after leaving the editor
This commit is contained in:
parent
c7eabb5ec0
commit
3c405f962c
1 changed files with 9 additions and 1 deletions
|
|
@ -1000,7 +1000,15 @@ public class BaseMainActivity extends LoggableActivity {
|
|||
}
|
||||
public void leaveCustomControls() {
|
||||
if(this instanceof MainActivity) {
|
||||
((MainActivity) this).mControlLayout.setModifiable(false);
|
||||
try {
|
||||
((MainActivity) this).mControlLayout.loadLayout((CustomControls)null);
|
||||
((MainActivity) this).mControlLayout.setModifiable(false);
|
||||
System.gc();
|
||||
((MainActivity) this).mControlLayout.loadLayout(LauncherPreferences.DEFAULT_PREF.getString("defaultCtrl",Tools.CTRLDEF_FILE));
|
||||
} catch (IOException e) {
|
||||
Tools.showError(this,e);
|
||||
}
|
||||
//((MainActivity) this).mControlLayout.loadLayout((CustomControls)null);
|
||||
}
|
||||
navDrawer.getMenu().clear();
|
||||
navDrawer.inflateMenu(R.menu.menu_runopt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue