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:
@@ -1612,7 +1612,12 @@ public class PackageManager {
|
||||
*/
|
||||
public ActivityInfo getActivityInfo(ComponentName component,
|
||||
int flags) throws NameNotFoundException {
|
||||
return new ActivityInfo();
|
||||
ActivityInfo info = new ActivityInfo();
|
||||
/* Breeze Weather tries to override the night mode setting, but we don't implement configuration overriding yet.
|
||||
* AppCompatDelegateImpl.updateAppConfiguration() checks if the setting is correctly overridden and otherwise recreates the activity.
|
||||
* To prevent infinite recreation, we set the CONFIG_UI_MODE flag, indicating that the activity can handle night mode change without recreation. */
|
||||
info.configChanges = ActivityInfo.CONFIG_UI_MODE;
|
||||
return info;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user