mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 03:12:15 +00:00
Fix: Theme references
This commit is contained in:
parent
dd607037d0
commit
8f736c5b05
@ -19,8 +19,8 @@
|
|||||||
android:label="@string/application_name"
|
android:label="@string/application_name"
|
||||||
android:roundIcon="${appIconRound}"
|
android:roundIcon="${appIconRound}"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/MainTheme"
|
|
||||||
tools:ignore="GoogleAppIndexingWarning">
|
tools:ignore="GoogleAppIndexingWarning">
|
||||||
|
android:theme="@style/Theme.Main.Amoled"
|
||||||
|
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".MainApplication$BootReceiver"
|
android:name=".MainApplication$BootReceiver"
|
||||||
|
@ -63,7 +63,7 @@ class ScreenshotsFragment() : DialogFragment() {
|
|||||||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
||||||
val packageName = requireArguments().getString(EXTRA_PACKAGE_NAME)!!
|
val packageName = requireArguments().getString(EXTRA_PACKAGE_NAME)!!
|
||||||
val repositoryId = requireArguments().getLong(EXTRA_REPOSITORY_ID)
|
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 window = dialog.window
|
||||||
val decorView = window?.decorView
|
val decorView = window?.decorView
|
||||||
|
@ -256,7 +256,7 @@ class DownloadService : ConnectionService<DownloadService.Binder>() {
|
|||||||
.Builder(this, NOTIFICATION_CHANNEL_DOWNLOADING)
|
.Builder(this, NOTIFICATION_CHANNEL_DOWNLOADING)
|
||||||
.setSmallIcon(android.R.drawable.stat_sys_download)
|
.setSmallIcon(android.R.drawable.stat_sys_download)
|
||||||
.setColor(
|
.setColor(
|
||||||
ContextThemeWrapper(this, R.style.Theme_Main_Light)
|
ContextThemeWrapper(this, R.style.Theme_Main_Amoled)
|
||||||
.getColorFromAttr(android.R.attr.colorPrimary).defaultColor
|
.getColorFromAttr(android.R.attr.colorPrimary).defaultColor
|
||||||
)
|
)
|
||||||
.addAction(
|
.addAction(
|
||||||
|
@ -238,7 +238,7 @@ class SyncService : ConnectionService<SyncService.Binder>() {
|
|||||||
.Builder(this, NOTIFICATION_CHANNEL_SYNCING)
|
.Builder(this, NOTIFICATION_CHANNEL_SYNCING)
|
||||||
.setSmallIcon(R.drawable.ic_sync)
|
.setSmallIcon(R.drawable.ic_sync)
|
||||||
.setColor(
|
.setColor(
|
||||||
ContextThemeWrapper(this, R.style.Theme_Main_Light)
|
ContextThemeWrapper(this, R.style.Theme_Main_Amoled)
|
||||||
.getColorFromAttr(android.R.attr.colorPrimary).defaultColor
|
.getColorFromAttr(android.R.attr.colorPrimary).defaultColor
|
||||||
)
|
)
|
||||||
.addAction(
|
.addAction(
|
||||||
|
@ -56,7 +56,7 @@ fun Context.displayUpdatesNotification(
|
|||||||
else null
|
else null
|
||||||
)
|
)
|
||||||
.setColor(
|
.setColor(
|
||||||
ContextThemeWrapper(this, R.style.Theme_Main_Light)
|
ContextThemeWrapper(this, R.style.Theme_Main_Amoled)
|
||||||
.getColorFromAttr(android.R.attr.colorPrimary).defaultColor
|
.getColorFromAttr(android.R.attr.colorPrimary).defaultColor
|
||||||
)
|
)
|
||||||
.setContentIntent(
|
.setContentIntent(
|
||||||
@ -106,7 +106,7 @@ fun Context.showNotificationError(repository: Repository, exception: Exception)
|
|||||||
.Builder(this, NOTIFICATION_CHANNEL_SYNCING)
|
.Builder(this, NOTIFICATION_CHANNEL_SYNCING)
|
||||||
.setSmallIcon(android.R.drawable.stat_sys_warning)
|
.setSmallIcon(android.R.drawable.stat_sys_warning)
|
||||||
.setColor(
|
.setColor(
|
||||||
ContextThemeWrapper(this, R.style.Theme_Main_Light)
|
ContextThemeWrapper(this, R.style.Theme_Main_Amoled)
|
||||||
.getColorFromAttr(android.R.attr.colorPrimary).defaultColor
|
.getColorFromAttr(android.R.attr.colorPrimary).defaultColor
|
||||||
)
|
)
|
||||||
.setContentTitle(getString(R.string.could_not_sync_FORMAT, repository.name))
|
.setContentTitle(getString(R.string.could_not_sync_FORMAT, repository.name))
|
||||||
@ -138,7 +138,7 @@ fun Context.showNotificationError(
|
|||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
.setSmallIcon(android.R.drawable.stat_sys_warning)
|
.setSmallIcon(android.R.drawable.stat_sys_warning)
|
||||||
.setColor(
|
.setColor(
|
||||||
ContextThemeWrapper(this, R.style.Theme_Main_Light)
|
ContextThemeWrapper(this, R.style.Theme_Main_Amoled)
|
||||||
.getColorFromAttr(R.attr.colorPrimary).defaultColor
|
.getColorFromAttr(R.attr.colorPrimary).defaultColor
|
||||||
)
|
)
|
||||||
.setContentIntent(
|
.setContentIntent(
|
||||||
@ -239,7 +239,7 @@ fun InstallerService.notifyStatus(intent: Intent?) {
|
|||||||
.Builder(this, NOTIFICATION_CHANNEL_INSTALLER)
|
.Builder(this, NOTIFICATION_CHANNEL_INSTALLER)
|
||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
.setColor(
|
.setColor(
|
||||||
ContextThemeWrapper(this, R.style.Theme_Main_Light)
|
ContextThemeWrapper(this, R.style.Theme_Main_Amoled)
|
||||||
.getColorFromAttr(R.attr.colorPrimary).defaultColor
|
.getColorFromAttr(R.attr.colorPrimary).defaultColor
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user