Android: Fix touchscreen controller being instantiated when disabled
This commit is contained in:
1 parent
4bcf8b3ce9
commit
3ed429772d
2 files changed
+2
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user