From 85fc230e32ef41ff11d1edc1a1d919ec84cb749e Mon Sep 17 00:00:00 2001 From: deniscerri <64997243+deniscerri@users.noreply.github.com> Date: Mon, 7 Sep 2026 12:47:34 +0200 Subject: [PATCH] fx --- app/build.gradle | 6 +- .../BgUtilsPoTokenGeneratorService.kt | 5 +- .../main/res/layout/active_download_card.xml | 7 +- .../main/res/layout/command_template_list.xml | 1 - .../configure_download_bottom_sheet.xml | 1 - .../main/res/layout/cookie_bottom_sheet.xml | 1 - .../res/layout/create_command_template.xml | 1 - app/src/main/res/layout/cut_video_sheet.xml | 1 - .../main/res/layout/download_bottom_sheet.xml | 2 - .../layout/download_multiple_bottom_sheet.xml | 2 - .../layout/extra_commands_bottom_sheet.xml | 1 - .../res/layout/format_select_bottom_sheet.xml | 2 - .../layout/fragment_already_exists_dialog.xml | 1 - .../fragment_generate_youtube_po_token.xml | 2 - .../generate_po_token_url_bottom_sheet.xml | 1 - .../history_item_details_bottom_sheet.xml | 2 - .../layout/observe_sources_bottom_sheet.xml | 1 - .../observe_sources_details_bottom_sheet.xml | 1 - .../main/res/layout/select_playlist_items.xml | 1 - app/src/main/res/layout/webview_activity.xml | 1 - .../res/layout/webview_potoken_activity.xml | 1 - ...tube_player_client_create_bottom_sheet.xml | 1 - .../main/res/layout/ytdlp_sources_list.xml | 1 - app/src/main/res/values-night/themes.xml | 99 +---------------- app/src/main/res/values/colors.xml | 105 +----------------- app/src/main/res/values/themes.xml | 61 +--------- 26 files changed, 19 insertions(+), 289 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index bd0ead80..3ca65076 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -183,7 +183,11 @@ dependencies { implementation "androidx.appcompat:appcompat:1.7.1" implementation "androidx.constraintlayout:constraintlayout:2.2.1" - implementation 'com.google.android.material:material:1.14.0' + implementation('com.google.android.material:material:1.10.0') { + version { + strictly '1.10.0' + } + } implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.recyclerview:recyclerview:1.4.0' implementation 'androidx.preference:preference-ktx:1.2.1' diff --git a/app/src/main/java/com/deniscerri/ytdl/services/BgUtilsPoTokenGeneratorService.kt b/app/src/main/java/com/deniscerri/ytdl/services/BgUtilsPoTokenGeneratorService.kt index decffc09..2cc44993 100644 --- a/app/src/main/java/com/deniscerri/ytdl/services/BgUtilsPoTokenGeneratorService.kt +++ b/app/src/main/java/com/deniscerri/ytdl/services/BgUtilsPoTokenGeneratorService.kt @@ -21,6 +21,7 @@ import com.deniscerri.ytdl.util.BgUtilsPoTokenGeneratorUtil import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.SupervisorJob +import kotlinx.coroutines.cancel import kotlinx.coroutines.launch import java.io.File @@ -42,6 +43,7 @@ class BgUtilsPoTokenGeneratorService : Service() { override fun onDestroy() { RuntimeManager.getInstance().destroyProcessById(currentRunningProcess) + serviceScope.cancel() super.onDestroy() } @@ -64,6 +66,7 @@ class BgUtilsPoTokenGeneratorService : Service() { if (intent?.action == "ACTION_EXIT") { runtimeManager.destroyProcessById(currentRunningProcess) + stopForeground(STOP_FOREGROUND_REMOVE) stopSelf() return super.onStartCommand(intent, flags, startId) } @@ -104,7 +107,7 @@ class BgUtilsPoTokenGeneratorService : Service() { } } - return START_STICKY + return START_NOT_STICKY } private fun createNotification(description: String = ""): Notification { diff --git a/app/src/main/res/layout/active_download_card.xml b/app/src/main/res/layout/active_download_card.xml index e3495ef0..ba9d02cf 100644 --- a/app/src/main/res/layout/active_download_card.xml +++ b/app/src/main/res/layout/active_download_card.xml @@ -34,14 +34,11 @@ + android:scaleY="200"/> @color/red_md_theme_dark_onSurface @color/red_md_theme_dark_surfaceVariant @color/red_md_theme_dark_onSurfaceVariant - - - @color/red_md_theme_dark_surfaceDim - @color/red_md_theme_dark_surfaceBright - @color/red_md_theme_dark_surfaceContainerLowest - @color/red_md_theme_dark_surfaceContainerLow - @color/red_md_theme_dark_surfaceContainer - @color/red_md_theme_dark_surfaceContainerHigh - @color/red_md_theme_dark_surfaceContainerHighest @color/red_md_theme_dark_outline - @color/red_md_theme_dark_outlineVariant @color/red_md_theme_dark_inverseOnSurface @color/red_md_theme_dark_inverseSurface @color/red_md_theme_dark_inversePrimary @@ -58,54 +48,29 @@ \ No newline at end of file diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 2fb20902..cb1f37e6 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -4,8 +4,9 @@ #000000 #323232 #A6A6A6 - #FFFFFF - #db2e2e + #FFFFFF + #db2e2e + #0058CB #FFFFFF @@ -33,14 +34,6 @@ #F2F0F4 #303034 #B0C6FF - #DFDEE4 - #FEFBFF - #FFFFFF - #F7F5FA - #F1F0F5 - #EBE9EE - #E5E3E8 - #C5C6D0 #B0C6FF #002D6F #00429B @@ -67,14 +60,6 @@ #1B1B1F #E3E2E6 #0058CB - #1B1B1F - #414047 - #151419 - #232227 - #27262B - #312F34 - #3B393F - #44464F #9F4034 #FFFFFF @@ -102,14 +87,6 @@ #FBEEEC #362F2E #FFB4A9 - #DED0CD - #FFFBFF - #FFFFFF - #F8F1EF - #F2EBE9 - #ECE5E3 - #E6DFDD - #D8C2BE #FFB4A9 #61120C #7F291F @@ -136,14 +113,6 @@ #201A19 #EDE0DE #9F4034 - #201A19 - #463F3D - #15100F - #282220 - #2C2624 - #362F2D - #413A38 - #534341 #cf9b02 #FFFFFF @@ -171,14 +140,6 @@ #F7F0E7 #33302A #EBC248 - #DED9D0 - #FFFBFF - #FFFFFF - #F8F5EF - #F2EFE9 - #ECE9E3 - #E6E3DD - #CFC5B4 #EBC248 #3D2F00 #584400 @@ -205,14 +166,6 @@ #1E1B16 #E8E1D9 #745B00 - #1E1B16 - #464139 - #14120D - #28251F - #2C2923 - #37332C - #423E36 - #4C4639 #3E6A00 #FFFFFF @@ -240,14 +193,6 @@ #F2F1E9 #30312C #9ED75B - #DFE0D8 - #FDFCF5 - #FFFFFF - #F7F7F0 - #F1F1EA - #EBEBE4 - #E5E5DE - #C5C8BA #9ED75B #1E3700 #2E4F00 @@ -274,14 +219,6 @@ #1B1C18 #E3E3DB #3E6A00 - #1B1C18 - #41423C - #141510 - #23241F - #272823 - #32332D - #3C3D37 - #44483D #9B3489 #FFFFFF @@ -309,14 +246,6 @@ #F8EEF1 #342F32 #FFACE7 - #DED9DC - #FFFBFF - #FFFFFF - #F8F3F6 - #F2EDF0 - #ECE7EA - #E6E1E4 - #D2C2CA #FFACE7 #5E0052 #7E186F @@ -343,14 +272,7 @@ #1F1A1D #EAE0E3 #9B3489 - #1F1A1D - #453E42 - #151013 - #272226 - #2B262A - #352F33 - #403A3E - #4F444A + #855400 #FFFFFF @@ -378,14 +300,6 @@ #F9EFE7 #352F2A #FFB95C - #E0D9D2 - #FFFBFF - #FFFFFF - #F8F4EE - #F2EEE8 - #ECE8E2 - #E6E2DC - #D4C4B5 #FFB95C #462A00 #653E00 @@ -412,14 +326,6 @@ #1F1B16 #EBE1D9 #855400 - #1B1B1B - #414141 - #141414 - #232323 - #272727 - #313131 - #3B3B3B - #504539 // Colors without comments seem to be not used #616161 @@ -500,4 +406,5 @@ #404040 #C3C3C3 #707070 - + + \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 97d9005e..73a4c235 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -37,17 +37,7 @@ @color/red_md_theme_light_onSurface @color/red_md_theme_light_surfaceVariant @color/red_md_theme_light_onSurfaceVariant - - - @color/red_md_theme_light_surfaceDim - @color/red_md_theme_light_surfaceBright - @color/red_md_theme_light_surfaceContainerLowest - @color/red_md_theme_light_surfaceContainerLow - @color/red_md_theme_light_surfaceContainer - @color/red_md_theme_light_surfaceContainerHigh - @color/red_md_theme_light_surfaceContainerHighest @color/red_md_theme_light_outline - @color/red_md_theme_light_outlineVariant @color/red_md_theme_light_inverseOnSurface @color/red_md_theme_light_inverseSurface @color/red_md_theme_light_inversePrimary @@ -79,17 +69,7 @@ @color/blue_md_theme_light_onSurface @color/blue_md_theme_light_surfaceVariant @color/blue_md_theme_light_onSurfaceVariant - - - @color/blue_md_theme_light_surfaceDim - @color/blue_md_theme_light_surfaceBright - @color/blue_md_theme_light_surfaceContainerLowest - @color/blue_md_theme_light_surfaceContainerLow - @color/blue_md_theme_light_surfaceContainer - @color/blue_md_theme_light_surfaceContainerHigh - @color/blue_md_theme_light_surfaceContainerHighest @color/blue_md_theme_light_outline - @color/blue_md_theme_light_outlineVariant @color/blue_md_theme_light_inverseOnSurface @color/blue_md_theme_light_inverseSurface @color/blue_md_theme_light_inversePrimary @@ -122,17 +102,7 @@ @color/yellow_md_theme_light_onSurface @color/yellow_md_theme_light_surfaceVariant @color/yellow_md_theme_light_onSurfaceVariant - - - @color/yellow_md_theme_light_surfaceDim - @color/yellow_md_theme_light_surfaceBright - @color/yellow_md_theme_light_surfaceContainerLowest - @color/yellow_md_theme_light_surfaceContainerLow - @color/yellow_md_theme_light_surfaceContainer - @color/yellow_md_theme_light_surfaceContainerHigh - @color/yellow_md_theme_light_surfaceContainerHighest @color/yellow_md_theme_light_outline - @color/yellow_md_theme_light_outlineVariant @color/yellow_md_theme_light_inverseOnSurface @color/yellow_md_theme_light_inverseSurface @color/yellow_md_theme_light_inversePrimary @@ -164,17 +134,7 @@ @color/green_md_theme_light_onSurface @color/green_md_theme_light_surfaceVariant @color/green_md_theme_light_onSurfaceVariant - - - @color/green_md_theme_light_surfaceDim - @color/green_md_theme_light_surfaceBright - @color/green_md_theme_light_surfaceContainerLowest - @color/green_md_theme_light_surfaceContainerLow - @color/green_md_theme_light_surfaceContainer - @color/green_md_theme_light_surfaceContainerHigh - @color/green_md_theme_light_surfaceContainerHighest @color/green_md_theme_light_outline - @color/green_md_theme_light_outlineVariant @color/green_md_theme_light_inverseOnSurface @color/green_md_theme_light_inverseSurface @color/green_md_theme_light_inversePrimary @@ -207,17 +167,7 @@ @color/purple_md_theme_light_onSurface @color/purple_md_theme_light_surfaceVariant @color/purple_md_theme_light_onSurfaceVariant - - - @color/purple_md_theme_light_surfaceDim - @color/purple_md_theme_light_surfaceBright - @color/purple_md_theme_light_surfaceContainerLowest - @color/purple_md_theme_light_surfaceContainerLow - @color/purple_md_theme_light_surfaceContainer - @color/purple_md_theme_light_surfaceContainerHigh - @color/purple_md_theme_light_surfaceContainerHighest @color/purple_md_theme_light_outline - @color/purple_md_theme_light_outlineVariant @color/purple_md_theme_light_inverseOnSurface @color/purple_md_theme_light_inverseSurface @color/purple_md_theme_light_inversePrimary @@ -280,17 +230,7 @@ @color/orange_md_theme_light_onSurface @color/orange_md_theme_light_surfaceVariant @color/orange_md_theme_light_onSurfaceVariant - - - @color/orange_md_theme_light_surfaceDim - @color/orange_md_theme_light_surfaceBright - @color/orange_md_theme_light_surfaceContainerLowest - @color/orange_md_theme_light_surfaceContainerLow - @color/orange_md_theme_light_surfaceContainer - @color/orange_md_theme_light_surfaceContainerHigh - @color/orange_md_theme_light_surfaceContainerHighest @color/orange_md_theme_light_outline - @color/orange_md_theme_light_outlineVariant @color/orange_md_theme_light_inverseOnSurface @color/orange_md_theme_light_inverseSurface @color/orange_md_theme_light_inversePrimary @@ -302,4 +242,5 @@ @android:color/white + \ No newline at end of file