mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
android: EmulationActivity: Temporarily disable running notification.
This commit is contained in:
parent
ef605f7d8f
commit
f33776af67
|
@ -45,7 +45,9 @@ public class YuzuApplication extends Application {
|
||||||
DirectoryInitialization.start(getApplicationContext());
|
DirectoryInitialization.start(getApplicationContext());
|
||||||
|
|
||||||
NativeLibrary.LogDeviceInfo();
|
NativeLibrary.LogDeviceInfo();
|
||||||
createNotificationChannel();
|
|
||||||
|
// TODO(bunnei): Disable notifications until we support app suspension.
|
||||||
|
//createNotificationChannel();
|
||||||
|
|
||||||
databaseHelper = new GameDatabase(this);
|
databaseHelper = new GameDatabase(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,6 @@ import org.yuzu.yuzu_emu.utils.ControllerMappingHelper;
|
||||||
import org.yuzu.yuzu_emu.utils.ForegroundService;
|
import org.yuzu.yuzu_emu.utils.ForegroundService;
|
||||||
|
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import static java.lang.annotation.RetentionPolicy.SOURCE;
|
import static java.lang.annotation.RetentionPolicy.SOURCE;
|
||||||
|
|
||||||
|
@ -57,7 +56,8 @@ public final class EmulationActivity extends AppCompatActivity {
|
||||||
private EmulationFragment mEmulationFragment;
|
private EmulationFragment mEmulationFragment;
|
||||||
private SharedPreferences mPreferences;
|
private SharedPreferences mPreferences;
|
||||||
private ControllerMappingHelper mControllerMappingHelper;
|
private ControllerMappingHelper mControllerMappingHelper;
|
||||||
private Intent foregroundService;
|
// TODO(bunnei): Disable notifications until we support app suspension.
|
||||||
|
// private Intent foregroundService;
|
||||||
private boolean activityRecreated;
|
private boolean activityRecreated;
|
||||||
private String mSelectedTitle;
|
private String mSelectedTitle;
|
||||||
private String mPath;
|
private String mPath;
|
||||||
|
@ -73,12 +73,14 @@ public final class EmulationActivity extends AppCompatActivity {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void tryDismissRunningNotification(Activity activity) {
|
public static void tryDismissRunningNotification(Activity activity) {
|
||||||
NotificationManagerCompat.from(activity).cancel(EMULATION_RUNNING_NOTIFICATION);
|
// TODO(bunnei): Disable notifications until we support app suspension.
|
||||||
|
// NotificationManagerCompat.from(activity).cancel(EMULATION_RUNNING_NOTIFICATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
stopService(foregroundService);
|
// TODO(bunnei): Disable notifications until we support app suspension.
|
||||||
|
// stopService(foregroundService);
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,8 +133,9 @@ public final class EmulationActivity extends AppCompatActivity {
|
||||||
mPreferences = PreferenceManager.getDefaultSharedPreferences(this);
|
mPreferences = PreferenceManager.getDefaultSharedPreferences(this);
|
||||||
|
|
||||||
// Start a foreground service to prevent the app from getting killed in the background
|
// Start a foreground service to prevent the app from getting killed in the background
|
||||||
foregroundService = new Intent(EmulationActivity.this, ForegroundService.class);
|
// TODO(bunnei): Disable notifications until we support app suspension.
|
||||||
startForegroundService(foregroundService);
|
// foregroundService = new Intent(EmulationActivity.this, ForegroundService.class);
|
||||||
|
// startForegroundService(foregroundService);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue