@Override
public void onColorSelection(@NonNull ColorChooserDialog dialog, @ColorInt int selectedColor) {
switch (dialog.getTitle()) {
case R.string.primary_color:
ThemeStore.editTheme(this)
.primaryColor(selectedColor)
.commit();
break;
case R.string.accent_color:
ThemeStore.editTheme(this)
.accentColor(selectedColor)
.commit();
break;
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N_MR1) {
new DynamicShortcutManager(this).updateDynamicShortcuts();
}
recreate();
}
SettingsActivity.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:Orin
作者:
评论列表
文章目录