mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-22 19:02:12 +00:00
Fix: Theme references
This commit is contained in:
parent
dd607037d0
commit
8f736c5b05
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user