Android: Disable service until pause is supported

This commit is contained in:
Abandoned Cart 2018-08-02 12:25:02 -04:00 committed by GitHub
parent 7c3e7fb161
commit feb8d7a321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -61,10 +61,10 @@ public class GL2JNIActivity extends Activity {
WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED, WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED); WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
} }
serviceIntent = new Intent(this, EmuService.class); //serviceIntent = new Intent(this, EmuService.class);
serviceIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_FROM_BACKGROUND); //serviceIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_FROM_BACKGROUND);
serviceIntent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES | Intent.FLAG_ACTIVITY_NO_ANIMATION); //serviceIntent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES | Intent.FLAG_ACTIVITY_NO_ANIMATION);
startService(serviceIntent); //startService(serviceIntent);
Emulator app = (Emulator)getApplicationContext(); Emulator app = (Emulator)getApplicationContext();
app.getConfigurationPrefs(prefs); app.getConfigurationPrefs(prefs);
@ -572,8 +572,8 @@ public class GL2JNIActivity extends Activity {
@Override @Override
protected void onDestroy() { protected void onDestroy() {
super.onDestroy(); super.onDestroy();
if (serviceRunning(EmuService.class)) //if (serviceRunning(EmuService.class))
stopService(serviceIntent); // stopService(serviceIntent);
mView.onDestroy(); mView.onDestroy();
JNIdc.terminate(); JNIdc.terminate();
moga.onDestroy(); moga.onDestroy();