You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
api-impl: stubs and fixes for Breezy Weather
This commit is contained in:
@@ -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) {}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,6 @@ package android.app;
|
||||
public class NotificationChannelGroup {
|
||||
public NotificationChannelGroup(String a, CharSequence b) {
|
||||
}
|
||||
|
||||
public void setDescription(String description) {}
|
||||
}
|
||||
|
||||
@@ -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) {}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user