fixed accent resetting

This commit is contained in:
gdlbo
2022-12-03 14:57:12 +03:00
parent f2fcc5f4d1
commit 537a3759d0
@@ -123,7 +123,10 @@ public class ThemesFragment extends MaterialPreferenceToolbarFragment {
break;
}
})
.setNegativeButton(R.string.reset, (dialog, which) -> setAccentColor(ThemesUtils.getColorFromAttr(R.attr.accent)))
.setNegativeButton(R.string.reset, (dialog, which) -> {
ThemesUtils.setCustomAccentColor(0, false);
LifecycleUtils.restartApplicationWithTimer();
})
.setPositiveButton(R.string.cancel, null)
.show();
}