api-impl: stubs and fixes for Breezy Weather

This commit is contained in:
Julian Winkler
2025-10-01 09:57:01 +02:00
parent ffbd63cb75
commit a09aa53ecf
20 changed files with 105 additions and 7 deletions

View File

@@ -19,4 +19,5 @@ public class NotificationChannel {
public int getLightColor() { return 0; }
public boolean shouldVibrate() { return false; }
public Uri getSound() { return null; }
public void setDescription(String description) {}
}

View File

@@ -3,4 +3,6 @@ package android.app;
public class NotificationChannelGroup {
public NotificationChannelGroup(String a, CharSequence b) {
}
public void setDescription(String description) {}
}

View File

@@ -90,4 +90,10 @@ public class NotificationManager {
public boolean areNotificationsEnabled() {
return true;
}
public void deleteNotificationChannel(String channelId) {}
public void createNotificationChannelGroups(List<NotificationChannelGroup> groups) {}
public void createNotificationChannels(List<NotificationChannel> channels) {}
}

View File

@@ -1,10 +1,15 @@
package android.app;
import android.content.Context;
import android.content.res.Configuration;
public class UiModeManager {
public int getCurrentModeType() {
return Configuration.UI_MODE_TYPE_NORMAL;
return Context.r.getConfiguration().uiMode & Configuration.UI_MODE_TYPE_MASK;
}
public int getNightMode() {
return Context.r.getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK;
}
}