Skip to content

Commit 9aba818

Browse files
committed
chore: Cleanup ForegroundServiceOemUtils class
1 parent f91315a commit 9aba818

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

play-services-base/core/src/main/java/org/microg/gms/common/ForegroundServiceOemUtils.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,12 @@ public static Intent getDkmaIntent(String slug) {
3636
return new Intent(Intent.ACTION_VIEW, Uri.parse(url));
3737
}
3838

39-
/// Temporary fix: [#112](https://github.com/MorpheApp/MicroG-RE/issues/112)
40-
4139
public static boolean isXiaomi() {
4240
return Build.MANUFACTURER.toLowerCase(Locale.ROOT).contains("xiaomi");
4341
}
4442

45-
@android.annotation.SuppressLint("BatteryLife")
4643
public static Intent getBatteryOptimizationIntent(Context context) {
44+
// Temporary fix issues: https://github.com/MorpheApp/MicroG-RE/issues/112
4745
if (isXiaomi()) {
4846
return new Intent(Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS);
4947
} else {

0 commit comments

Comments
 (0)