Android: Disable service until pause is supported
This commit is contained in:
parent
7c3e7fb161
commit
feb8d7a321
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue