mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-21 10:15:23 +12:00
finish
This commit is contained in:
parent
82d9b69661
commit
6c97ec3947
1 changed files with 8 additions and 0 deletions
|
@ -5,6 +5,8 @@ import android.content.Context;
|
|||
import android.content.Intent;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.Resources;
|
||||
import com.google.android.material.color.DynamicColors
|
||||
import com.google.android.material.color.DynamicColorsOptions
|
||||
|
||||
import com.panda3ds.pandroid.AlberDriver;
|
||||
import com.panda3ds.pandroid.R;
|
||||
|
@ -30,6 +32,12 @@ public class PandroidApplication extends Application {
|
|||
if (GlobalConfig.get(GlobalConfig.KEY_LOGGER_SERVICE)) {
|
||||
startService(new Intent(this, LoggerService.class));
|
||||
}
|
||||
if (GlobalConfig.get(GlobalConfig.KEY_DYNAMIC_COLORS)) {
|
||||
DynamicColorsOptions dynamicColorsOptions = new DynamicColorsOptions.Builder()
|
||||
.setPrecondition(null)
|
||||
.build();
|
||||
DynamicColors.applyToActivitiesIfAvailable(this, dynamicColorsOptions);
|
||||
}
|
||||
}
|
||||
|
||||
public static int getThemeId() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue