mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Merge pull request #7086 from Bnyro/master
fix: can't change app icon (debug versions only)
This commit is contained in:
commit
f28f48649c
@ -128,7 +128,7 @@ object ThemeHelper {
|
||||
fun changeIcon(context: Context, newLogoActivityAlias: String) {
|
||||
// Disable Old Icon(s)
|
||||
for (appIcon in IconsSheetAdapter.availableIcons) {
|
||||
val activityClass = context.packageName + "." + appIcon.activityAlias
|
||||
val activityClass = context.packageName.removeSuffix(".debug") + "." + appIcon.activityAlias
|
||||
|
||||
// remove old icons
|
||||
context.packageManager.setComponentEnabledSetting(
|
||||
@ -139,7 +139,7 @@ object ThemeHelper {
|
||||
}
|
||||
|
||||
// set the class name for the activity alias
|
||||
val newLogoActivityClass = context.packageName + "." + newLogoActivityAlias
|
||||
val newLogoActivityClass = context.packageName.removeSuffix(".debug") + "." + newLogoActivityAlias
|
||||
// Enable New Icon
|
||||
context.packageManager.setComponentEnabledSetting(
|
||||
ComponentName(context.packageName, newLogoActivityClass),
|
||||
|
Loading…
x
Reference in New Issue
Block a user