mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Some android cleanups
This commit is contained in:
@@ -1364,7 +1364,7 @@ public class PpssppActivity extends AppCompatActivity implements SensorEventList
|
||||
int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
|
||||
String picturePath = cursor.getString(columnIndex);
|
||||
cursor.close();
|
||||
Log.i(TAG, "Selected picture path: " + selectedImage);
|
||||
Log.i(TAG, "Selected picture path: " + picturePath);
|
||||
NativeApp.sendRequestResult(requestId, true, picturePath, 0);
|
||||
}
|
||||
}
|
||||
@@ -1629,11 +1629,11 @@ public class PpssppActivity extends AppCompatActivity implements SensorEventList
|
||||
InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||
// No idea what the point of the ApplicationWindowToken is or if it
|
||||
// matters where we get it from...
|
||||
inputMethodManager.toggleSoftInputFromWindow(surfView.getApplicationWindowToken(), InputMethodManager.SHOW_FORCED, 0);
|
||||
inputMethodManager.showSoftInput(surfView, InputMethodManager.SHOW_IMPLICIT);
|
||||
return true;
|
||||
} else if (command.equals("hideKeyboard") && surfView != null) {
|
||||
InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||
inputMethodManager.toggleSoftInputFromWindow(surfView.getApplicationWindowToken(), InputMethodManager.SHOW_FORCED, 0);
|
||||
inputMethodManager.hideSoftInputFromWindow(surfView.getWindowToken(), 0);
|
||||
return true;
|
||||
} else if (command.equals("inputbox")) {
|
||||
String title = "Input";
|
||||
@@ -1845,6 +1845,7 @@ public class PpssppActivity extends AppCompatActivity implements SensorEventList
|
||||
@Override
|
||||
public void onNewIntent(Intent intent) {
|
||||
super.onNewIntent(intent);
|
||||
setIntent(intent);
|
||||
String value = parseIntent(intent);
|
||||
if (value != null) {
|
||||
// TODO: Actually send a command to the native code to launch the new game.
|
||||
|
||||
@@ -4,3 +4,13 @@ android.nonTransitiveRClass=true
|
||||
android.nonFinalResIds=true
|
||||
# This suppression is only needed for the legacy build.
|
||||
android.ndk.suppressMinSdkVersionError=21
|
||||
android.defaults.buildfeatures.resvalues=true
|
||||
android.sdk.defaultTargetSdkToCompileSdkIfUnset=false
|
||||
android.enableAppCompileTimeRClass=false
|
||||
android.usesSdkInManifest.disallowed=false
|
||||
android.uniquePackageNames=false
|
||||
android.dependency.useConstraints=true
|
||||
android.r8.strictFullModeForKeepRules=false
|
||||
android.r8.optimizedResourceShrinking=false
|
||||
android.builtInKotlin=false
|
||||
android.newDsl=false
|
||||
|
||||
Reference in New Issue
Block a user