Fix: Theme references

This commit is contained in:
machiav3lli 2022-10-08 01:43:15 +02:00
parent dd607037d0
commit 8f736c5b05
5 changed files with 8 additions and 8 deletions

View File

@ -19,8 +19,8 @@
android:label="@string/application_name"
android:roundIcon="${appIconRound}"
android:supportsRtl="true"
android:theme="@style/MainTheme"
tools:ignore="GoogleAppIndexingWarning">
android:theme="@style/Theme.Main.Amoled"
<receiver
android:name=".MainApplication$BootReceiver"

View File

@ -63,7 +63,7 @@ class ScreenshotsFragment() : DialogFragment() {
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
val packageName = requireArguments().getString(EXTRA_PACKAGE_NAME)!!
val repositoryId = requireArguments().getLong(EXTRA_REPOSITORY_ID)
val dialog = Dialog(requireContext(), R.style.Theme_Main_Dark)
val dialog = Dialog(requireContext(), R.style.Theme_Main_Amoled)
val window = dialog.window
val decorView = window?.decorView

View File

@ -256,7 +256,7 @@ class DownloadService : ConnectionService<DownloadService.Binder>() {
.Builder(this, NOTIFICATION_CHANNEL_DOWNLOADING)
.setSmallIcon(android.R.drawable.stat_sys_download)
.setColor(
ContextThemeWrapper(this, R.style.Theme_Main_Light)
ContextThemeWrapper(this, R.style.Theme_Main_Amoled)
.getColorFromAttr(android.R.attr.colorPrimary).defaultColor
)
.addAction(

View File

@ -238,7 +238,7 @@ class SyncService : ConnectionService<SyncService.Binder>() {
.Builder(this, NOTIFICATION_CHANNEL_SYNCING)
.setSmallIcon(R.drawable.ic_sync)
.setColor(
ContextThemeWrapper(this, R.style.Theme_Main_Light)
ContextThemeWrapper(this, R.style.Theme_Main_Amoled)
.getColorFromAttr(android.R.attr.colorPrimary).defaultColor
)
.addAction(

View File

@ -56,7 +56,7 @@ fun Context.displayUpdatesNotification(
else null
)
.setColor(
ContextThemeWrapper(this, R.style.Theme_Main_Light)
ContextThemeWrapper(this, R.style.Theme_Main_Amoled)
.getColorFromAttr(android.R.attr.colorPrimary).defaultColor
)
.setContentIntent(
@ -106,7 +106,7 @@ fun Context.showNotificationError(repository: Repository, exception: Exception)
.Builder(this, NOTIFICATION_CHANNEL_SYNCING)
.setSmallIcon(android.R.drawable.stat_sys_warning)
.setColor(
ContextThemeWrapper(this, R.style.Theme_Main_Light)
ContextThemeWrapper(this, R.style.Theme_Main_Amoled)
.getColorFromAttr(android.R.attr.colorPrimary).defaultColor
)
.setContentTitle(getString(R.string.could_not_sync_FORMAT, repository.name))
@ -138,7 +138,7 @@ fun Context.showNotificationError(
.setAutoCancel(true)
.setSmallIcon(android.R.drawable.stat_sys_warning)
.setColor(
ContextThemeWrapper(this, R.style.Theme_Main_Light)
ContextThemeWrapper(this, R.style.Theme_Main_Amoled)
.getColorFromAttr(R.attr.colorPrimary).defaultColor
)
.setContentIntent(
@ -239,7 +239,7 @@ fun InstallerService.notifyStatus(intent: Intent?) {
.Builder(this, NOTIFICATION_CHANNEL_INSTALLER)
.setAutoCancel(true)
.setColor(
ContextThemeWrapper(this, R.style.Theme_Main_Light)
ContextThemeWrapper(this, R.style.Theme_Main_Amoled)
.getColorFromAttr(R.attr.colorPrimary).defaultColor
)