Skip to content

Commit

Permalink
Support log and icon improvements (#3407)
Browse files Browse the repository at this point in the history
  • Loading branch information
geekygecko authored Jan 8, 2025
1 parent 36e1af3 commit 1506202
Show file tree
Hide file tree
Showing 26 changed files with 27 additions and 24 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@
android:targetActivity=".ui.MainActivity"
android:enabled="false"
android:exported="true"
android:icon="@mipmap/ic_launcher_pride_2023">
android:icon="@mipmap/ic_launcher_pride">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class SettingsAppearanceViewModel @Inject constructor(
AppIcon.AppIconType.PATRON_ROUND -> "patron_round"
AppIcon.AppIconType.PATRON_GLOW -> "patron_glow"
AppIcon.AppIconType.PATRON_DARK -> "patron_dark"
AppIcon.AppIconType.PRIDE_2023 -> "pride_2023"
AppIcon.AppIconType.PRIDE -> "pride_2023"
},
),
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_pride_2023_background"/>
<foreground android:drawable="@mipmap/ic_launcher_pride_2023_foreground"/>
<background android:drawable="@mipmap/ic_launcher_pride_background"/>
<foreground android:drawable="@mipmap/ic_launcher_pride_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_monochrome"/>
</adaptive-icon>
</adaptive-icon>
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,7 @@
<string name="settings_app_icon_rose" translatable="false">@string/settings_theme_rose</string>
<string name="settings_app_icon_pocket_cats" translatable="false">Pocket Cats</string>
<string name="settings_app_icon_red_velvet">Red Velvet</string>
<string name="settings_app_icon_pride_2023">Pride 2023</string>
<string name="settings_app_icon_pride">Pride</string>
<string name="settings_app_icon_plus">Plus</string>
<string name="settings_app_icon_classic" translatable="false">@string/settings_theme_classic</string>
<string name="settings_app_icon_electric_blue">Electric Blue</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ enum class AppIconSetting(val id: String) {
ROSE("rose"),
CAT("cat"),
REDVELVET("redvelvet"),
PRIDE_2023("pride_2023"),
PRIDE("pride_2023"), // Leave the 2023 in the setting value so existing users don't lose their icon
PLUS("plus"),
CLASSIC("classic"),
ELECTRIC_BLUE("electricBlue"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class Support @Inject constructor(
output.append(eol)

output.append("Background refresh: ").append(settings.backgroundRefreshPodcasts.value).append(eol)
output.append("Battery restriction: ${systemBatteryRestrictions.status}")
output.append("Battery restriction: ${systemBatteryRestrictions.status}").append(eol)
output.append(eol)

if (Build.VERSION.SDK_INT >= 30) {
Expand All @@ -248,7 +248,7 @@ class Support @Inject constructor(

val features = Feature.entries.map { "${it.key}: ${FeatureFlag.isEnabled(it)}" }
output.append("Feature flags").append(eol)
features.forEach { output.append(it).append(eol) }
features.forEach { output.append(" ").append(it).append(eol) }

val podcastsOutput = StringBuilder()
podcastsOutput.append("Podcasts").append(eol).append("--------").append(eol).append(eol)
Expand All @@ -264,8 +264,11 @@ class Support @Inject constructor(
podcastsOutput.append(if (podcast.title.isEmpty()) "-" else podcast.title).append(eol)
podcastsOutput.append("Last episode: ").append(podcast.latestEpisodeUuid).append(eol)
val effects = podcast.playbackEffects
podcastsOutput.append("Audio effects: ").append(if (podcast.overrideGlobalEffects) "on" else "off").append(" Silence removed: ").append(effects.trimMode).append(" Speed: ").append(effects.playbackSpeed).append(" Boost: ")
.append(if (effects.isVolumeBoosted) "on" else "off").append(eol)
podcastsOutput.append("Audio effects: ").append(if (podcast.overrideGlobalEffects) "on" else "off")
.append(" Silence removed: ").append(effects.trimMode.toString().lowercase())
.append(" Speed: ").append(effects.playbackSpeed)
.append(" Boost: ").append(if (effects.isVolumeBoosted) "on" else "off")
.append(eol)
podcastsOutput.append("Auto download? ").append(podcast.isAutoDownloadNewEpisodes).append(eol)
podcastsOutput.append("Custom auto archive: ").append(podcast.overrideGlobalArchive.toString()).append(eol)
if (podcast.overrideGlobalArchive) {
Expand All @@ -284,16 +287,16 @@ class Support @Inject constructor(

output.append(eol)
output.append("Auto archive settings").append(eol)
output.append("Auto archive played episodes after: ${settings.autoArchiveAfterPlaying.value.analyticsValue}").append(eol)
output.append("Auto archive inactive episodes after: ${settings.autoArchiveInactive.value.analyticsValue}").append(eol)
output.append("Auto archive starred episodes: ${settings.autoArchiveIncludesStarred.value}").append(eol)
output.append(" Auto archive played episodes after: ${settings.autoArchiveAfterPlaying.value.analyticsValue}").append(eol)
output.append(" Auto archive inactive episodes after: ${settings.autoArchiveInactive.value.analyticsValue}").append(eol)
output.append(" Auto archive starred episodes: ${settings.autoArchiveIncludesStarred.value}").append(eol)

output.append(eol)
output.append("Auto downloads").append(eol)
output.append(" Any podcast? ").append(yesNoString(autoDownloadOn[0])).append(eol)
output.append(" New Episodes? ").append(yesNoString(settings.autoDownloadNewEpisodes.value == AUTO_DOWNLOAD_NEW_EPISODES)).append(eol)
output.append(" On Follow? ").append(yesNoString(settings.autoDownloadOnFollowPodcast.value)).append(eol)
output.append(" Limit Downloads ").append(settings.autoDownloadLimit.value).append(eol)
output.append(" New episodes? ").append(yesNoString(settings.autoDownloadNewEpisodes.value == AUTO_DOWNLOAD_NEW_EPISODES)).append(eol)
output.append(" On follow? ").append(yesNoString(settings.autoDownloadOnFollowPodcast.value)).append(eol)
output.append(" Limit downloads: ").append(settings.autoDownloadLimit.value).append(eol)
output.append(" Up Next? ").append(yesNoString(settings.autoDownloadUpNext.value)).append(eol)
output.append(" Only on unmetered WiFi? ").append(yesNoString(settings.autoDownloadUnmeteredOnly.value)).append(eol)
output.append(" Only when charging? ").append(yesNoString(settings.autoDownloadOnlyWhenCharging.value)).append(eol)
Expand Down Expand Up @@ -392,7 +395,7 @@ class Support @Inject constructor(
output.append("Effects").append(eol)
output.append("Global Audio effects: ")
.append(" Playback speed: ").append(effects.playbackSpeed).append(eol)
.append(" Silence removed: ").append(effects.trimMode).append(eol)
.append(" Silence removed: ").append(effects.trimMode.toString().lowercase()).append(eol)
.append(" Volume boost: ").append(if (effects.isVolumeBoosted) "on" else "off").append(eol).append(eol)

output.append("Database").append(eol)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ class AppIcon @Inject constructor(
launcherIcon = IR.mipmap.ic_launcher_redvelvet,
aliasName = ".ui.MainActivity_11",
),
PRIDE_2023(
setting = AppIconSetting.PRIDE_2023,
labelId = LR.string.settings_app_icon_pride_2023,
settingsIcon = IR.drawable.appicon_pride_2023,
PRIDE(
setting = AppIconSetting.PRIDE,
labelId = LR.string.settings_app_icon_pride,
settingsIcon = IR.drawable.appicon_pride,
tier = SubscriptionTier.NONE,
launcherIcon = IR.mipmap.ic_launcher_pride_2023,
launcherIcon = IR.mipmap.ic_launcher_pride,
aliasName = ".ui.MainActivity_18",
),
PLUS(
Expand Down Expand Up @@ -195,7 +195,7 @@ class AppIcon @Inject constructor(
AppIconSetting.ROSE -> ROSE
AppIconSetting.CAT -> CAT
AppIconSetting.REDVELVET -> REDVELVET
AppIconSetting.PRIDE_2023 -> PRIDE_2023
AppIconSetting.PRIDE -> PRIDE
AppIconSetting.PLUS -> PLUS
AppIconSetting.CLASSIC -> CLASSIC
AppIconSetting.ELECTRIC_BLUE -> ELECTRIC_BLUE
Expand Down

0 comments on commit 1506202

Please sign in to comment.