Android: Fix touchscreen controller being instantiated when disabled

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

View File

@ -532,7 +532,7 @@ public class EmulationActivity extends AppCompatActivity implements SurfaceHolde
final boolean hasAnyControllers = mContentView.initControllerMapping(controllerType);
if (controllerType == "none" || viewType == "none" || (hasAnyControllers && autoHideTouchscreenController)) {
if (controllerType.equals("none") || viewType.equals("none") || (hasAnyControllers && autoHideTouchscreenController)) {
if (mTouchscreenController != null) {
activityLayout.removeView(mTouchscreenController);
mTouchscreenController = null;