Skip to content

Commit

Permalink
dynamic color test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Feb 7, 2024
1 parent b256c89 commit fc0dce0
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
import com.panda3ds.pandroid.data.config.GlobalConfig;
import com.panda3ds.pandroid.input.InputMap;
import com.panda3ds.pandroid.utils.GameUtils;
import com.google.android.material.color.DynamicColors;
import com.google.android.material.color.DynamicColorsOptions;


public class PandroidApplication extends Application {
Expand All @@ -27,6 +29,12 @@ public void onCreate() {
InputMap.initialize();
AlberDriver.Setup();

DynamicColorsOptions dynamicColorsOptions = new DynamicColorsOptions.Builder()
.build();

DynamicColors.applyToActivitiesIfAvailable(this, dynamicColorsOptions);


if (GlobalConfig.get(GlobalConfig.KEY_LOGGER_SERVICE)) {
startService(new Intent(this, LoggerService.class));
}
Expand Down

0 comments on commit fc0dce0

Please sign in to comment.