Android: Fix nav/notification bar getting stuck when editing layout

This commit is contained in:
Connor McLaughlin 2020-12-14 02:13:19 +10:00
parent e85f7da874
commit 4bcf8b3ce9
1 changed files with 2 additions and 4 deletions

View File

@ -430,12 +430,10 @@ public class EmulationActivity extends AppCompatActivity implements SurfaceHolde
case 5: // Edit Touchscreen Controller Layout case 5: // Edit Touchscreen Controller Layout
{ {
if (mTouchscreenController != null) { if (mTouchscreenController != null)
mTouchscreenController.startLayoutEditing(); mTouchscreenController.startLayoutEditing();
} else {
Toast.makeText(this, R.string.emulation_activity_touchscreen_controller_not_active, Toast.LENGTH_SHORT);
}
onMenuClosed();
return; return;
} }
} }