From 4c7c0ebf9063d4e00d549be35c3f6fae176dc951 Mon Sep 17 00:00:00 2001 From: Joshua Bahnsen Date: Fri, 22 Feb 2013 18:23:41 -0700 Subject: [PATCH] Remove RemoteControlClientCompat, fix Remote Control, add alwaysShowNotification option --- .../sourceforge/subsonic/androidapp/R.java | 132 +++---- res/values/strings.xml | 2 + res/xml/settings.xml | 6 + .../service/DownloadServiceImpl.java | 52 ++- .../subsonic/androidapp/util/Constants.java | 1 + .../util/RemoteControlClientCompat.java | 353 ------------------ .../androidapp/util/RemoteControlHelper.java | 86 ----- .../subsonic/androidapp/util/Util.java | 5 + 8 files changed, 106 insertions(+), 531 deletions(-) delete mode 100644 src/net/sourceforge/subsonic/androidapp/util/RemoteControlClientCompat.java delete mode 100644 src/net/sourceforge/subsonic/androidapp/util/RemoteControlHelper.java diff --git a/gen/net/sourceforge/subsonic/androidapp/R.java b/gen/net/sourceforge/subsonic/androidapp/R.java index 6e60c3dc..b31f7956 100644 --- a/gen/net/sourceforge/subsonic/androidapp/R.java +++ b/gen/net/sourceforge/subsonic/androidapp/R.java @@ -349,12 +349,12 @@ public final class R { public static final int select_album_n_songs_downloading=0x7f0a0001; } public static final class string { - public static final int background_task_loading=0x7f0900ec; - public static final int background_task_network_error=0x7f0900ee; - public static final int background_task_no_network=0x7f0900ed; - public static final int background_task_not_found=0x7f0900ef; - public static final int background_task_parse_error=0x7f0900f0; - public static final int background_task_wait=0x7f0900eb; + public static final int background_task_loading=0x7f0900ee; + public static final int background_task_network_error=0x7f0900f0; + public static final int background_task_no_network=0x7f0900ef; + public static final int background_task_not_found=0x7f0900f1; + public static final int background_task_parse_error=0x7f0900f2; + public static final int background_task_wait=0x7f0900ed; public static final int button_bar_browse=0x7f09000b; public static final int button_bar_home=0x7f09000a; public static final int button_bar_now_playing=0x7f09000e; @@ -402,9 +402,9 @@ public final class R { public static final int download_repeat_single=0x7f09005f; public static final int download_visualizer_off=0x7f090061; public static final int download_visualizer_on=0x7f090060; - public static final int equalizer_enabled=0x7f0900fd; - public static final int equalizer_label=0x7f0900fc; - public static final int equalizer_preset=0x7f0900fe; + public static final int equalizer_enabled=0x7f0900ff; + public static final int equalizer_label=0x7f0900fe; + public static final int equalizer_preset=0x7f090100; public static final int error_label=0x7f09006b; public static final int help_back=0x7f090027; public static final int help_close=0x7f090028; @@ -439,14 +439,14 @@ public final class R { /** TODO: Keep screen on TODO: Keeping the screen on when downloading may improve download speed */ - public static final int music_service_retry=0x7f0900ea; - public static final int parser_artist_count=0x7f0900f8; - public static final int parser_not_authenticated=0x7f0900f6; - public static final int parser_not_authorized=0x7f0900f7; - public static final int parser_reading=0x7f0900f2; - public static final int parser_reading_done=0x7f0900f3; - public static final int parser_upgrade_client=0x7f0900f4; - public static final int parser_upgrade_server=0x7f0900f5; + public static final int music_service_retry=0x7f0900ec; + public static final int parser_artist_count=0x7f0900fa; + public static final int parser_not_authenticated=0x7f0900f8; + public static final int parser_not_authorized=0x7f0900f9; + public static final int parser_reading=0x7f0900f4; + public static final int parser_reading_done=0x7f0900f5; + public static final int parser_upgrade_client=0x7f0900f6; + public static final int parser_upgrade_server=0x7f0900f7; public static final int play_video_loading=0x7f09002b; public static final int play_video_noplugin=0x7f09002c; /** TODO: Exit @@ -481,11 +481,11 @@ public final class R { public static final int select_album_play_all=0x7f09003f; public static final int select_album_searching=0x7f09003e; public static final int select_album_select=0x7f090039; - public static final int select_artist_all_folders=0x7f0900fb; - public static final int select_artist_folder=0x7f0900fa; - public static final int select_artist_refresh=0x7f0900f9; + public static final int select_artist_all_folders=0x7f0900fd; + public static final int select_artist_folder=0x7f0900fc; + public static final int select_artist_refresh=0x7f0900fb; public static final int select_playlist_empty=0x7f090047; - public static final int service_connecting=0x7f0900f1; + public static final int service_connecting=0x7f0900f3; public static final int settings_appearance_title=0x7f090080; public static final int settings_buffer_length=0x7f0900b2; public static final int settings_buffer_length_10=0x7f0900b7; @@ -511,9 +511,9 @@ public final class R { public static final int settings_cache_title=0x7f090075; public static final int settings_clear_search_history=0x7f0900a5; public static final int settings_connection_failure=0x7f09007d; - public static final int settings_default_albums=0x7f0900e8; - public static final int settings_default_artists=0x7f0900e7; - public static final int settings_default_songs=0x7f0900e9; + public static final int settings_default_albums=0x7f0900ea; + public static final int settings_default_artists=0x7f0900e9; + public static final int settings_default_songs=0x7f0900eb; public static final int settings_hide_media_summary=0x7f0900ac; /** TODO: Scrobble to Last.fm TODO: Remember to set up your Last.fm user and password on the Subsonic server @@ -522,26 +522,26 @@ public final class R { public static final int settings_hide_media_toast=0x7f0900ad; public static final int settings_invalid_url=0x7f09007e; public static final int settings_invalid_username=0x7f09007f; - public static final int settings_max_albums=0x7f0900ca; - public static final int settings_max_albums_10=0x7f0900cc; - public static final int settings_max_albums_100=0x7f0900d1; - public static final int settings_max_albums_20=0x7f0900cd; - public static final int settings_max_albums_250=0x7f0900d2; - public static final int settings_max_albums_30=0x7f0900ce; - public static final int settings_max_albums_40=0x7f0900cf; - public static final int settings_max_albums_5=0x7f0900cb; - public static final int settings_max_albums_50=0x7f0900d0; - public static final int settings_max_albums_500=0x7f0900d3; - public static final int settings_max_artists=0x7f0900dd; - public static final int settings_max_artists_10=0x7f0900e0; - public static final int settings_max_artists_100=0x7f0900e4; - public static final int settings_max_artists_200=0x7f0900e5; - public static final int settings_max_artists_25=0x7f0900e1; - public static final int settings_max_artists_3=0x7f0900de; - public static final int settings_max_artists_5=0x7f0900df; - public static final int settings_max_artists_50=0x7f0900e2; - public static final int settings_max_artists_500=0x7f0900e6; - public static final int settings_max_artists_75=0x7f0900e3; + public static final int settings_max_albums=0x7f0900cc; + public static final int settings_max_albums_10=0x7f0900ce; + public static final int settings_max_albums_100=0x7f0900d3; + public static final int settings_max_albums_20=0x7f0900cf; + public static final int settings_max_albums_250=0x7f0900d4; + public static final int settings_max_albums_30=0x7f0900d0; + public static final int settings_max_albums_40=0x7f0900d1; + public static final int settings_max_albums_5=0x7f0900cd; + public static final int settings_max_albums_50=0x7f0900d2; + public static final int settings_max_albums_500=0x7f0900d5; + public static final int settings_max_artists=0x7f0900df; + public static final int settings_max_artists_10=0x7f0900e2; + public static final int settings_max_artists_100=0x7f0900e6; + public static final int settings_max_artists_200=0x7f0900e7; + public static final int settings_max_artists_25=0x7f0900e3; + public static final int settings_max_artists_3=0x7f0900e0; + public static final int settings_max_artists_5=0x7f0900e1; + public static final int settings_max_artists_50=0x7f0900e4; + public static final int settings_max_artists_500=0x7f0900e8; + public static final int settings_max_artists_75=0x7f0900e5; public static final int settings_max_bitrate_112=0x7f09008d; public static final int settings_max_bitrate_128=0x7f09008e; public static final int settings_max_bitrate_160=0x7f09008f; @@ -555,15 +555,15 @@ public final class R { public static final int settings_max_bitrate_mobile=0x7f090088; public static final int settings_max_bitrate_unlimited=0x7f090093; public static final int settings_max_bitrate_wifi=0x7f090087; - public static final int settings_max_songs=0x7f0900d4; - public static final int settings_max_songs_10=0x7f0900d6; - public static final int settings_max_songs_100=0x7f0900da; - public static final int settings_max_songs_200=0x7f0900db; - public static final int settings_max_songs_25=0x7f0900d7; - public static final int settings_max_songs_5=0x7f0900d5; - public static final int settings_max_songs_50=0x7f0900d8; - public static final int settings_max_songs_500=0x7f0900dc; - public static final int settings_max_songs_75=0x7f0900d9; + public static final int settings_max_songs=0x7f0900d6; + public static final int settings_max_songs_10=0x7f0900d8; + public static final int settings_max_songs_100=0x7f0900dc; + public static final int settings_max_songs_200=0x7f0900dd; + public static final int settings_max_songs_25=0x7f0900d9; + public static final int settings_max_songs_5=0x7f0900d7; + public static final int settings_max_songs_50=0x7f0900da; + public static final int settings_max_songs_500=0x7f0900de; + public static final int settings_max_songs_75=0x7f0900db; public static final int settings_media_button_summary=0x7f0900af; public static final int settings_media_button_title=0x7f0900ae; public static final int settings_network_timeout=0x7f0900b3; @@ -597,9 +597,11 @@ public final class R { public static final int settings_server_unused2=0x7f090070; public static final int settings_server_username=0x7f090073; public static final int settings_servers_title=0x7f09006e; - public static final int settings_show_lockscreen_controls=0x7f0900c6; - public static final int settings_show_lockscreen_controls_summary=0x7f0900c7; + public static final int settings_show_lockscreen_controls=0x7f0900c8; + public static final int settings_show_lockscreen_controls_summary=0x7f0900c9; public static final int settings_show_notification=0x7f0900c4; + public static final int settings_show_notification_always=0x7f0900c6; + public static final int settings_show_notification_always_summary=0x7f0900c7; public static final int settings_show_notification_summary=0x7f0900c5; public static final int settings_test_connection_title=0x7f09006d; public static final int settings_testing_connection=0x7f09007a; @@ -610,21 +612,21 @@ public final class R { public static final int settings_theme_fullscreenlight=0x7f090083; public static final int settings_theme_light=0x7f090084; public static final int settings_theme_title=0x7f090081; - public static final int settings_theme_wheat=0x7f090106; + public static final int settings_theme_wheat=0x7f090108; public static final int settings_title=0x7f09006c; - public static final int settings_use_stream_proxy=0x7f0900c8; - public static final int settings_use_stream_proxy_summary=0x7f0900c9; + public static final int settings_use_stream_proxy=0x7f0900ca; + public static final int settings_use_stream_proxy_summary=0x7f0900cb; public static final int settings_wifi_required_summary=0x7f090095; public static final int settings_wifi_required_title=0x7f090094; public static final int song_details_all=0x7f090068; public static final int song_details_kbps=0x7f090069; - public static final int util_bytes_format_byte=0x7f090105; - public static final int util_bytes_format_gigabyte=0x7f090102; - public static final int util_bytes_format_kilobyte=0x7f090104; - public static final int util_bytes_format_megabyte=0x7f090103; - public static final int widget_initial_text=0x7f0900ff; - public static final int widget_sdcard_busy=0x7f090100; - public static final int widget_sdcard_missing=0x7f090101; + public static final int util_bytes_format_byte=0x7f090107; + public static final int util_bytes_format_gigabyte=0x7f090104; + public static final int util_bytes_format_kilobyte=0x7f090106; + public static final int util_bytes_format_megabyte=0x7f090105; + public static final int widget_initial_text=0x7f090101; + public static final int widget_sdcard_busy=0x7f090102; + public static final int widget_sdcard_missing=0x7f090103; } public static final class style { public static final int Dark=0x7f0b0000; diff --git a/res/values/strings.xml b/res/values/strings.xml index 2ba14a3a..40d73c8f 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -217,6 +217,8 @@ 120 seconds Show Notification Show now playing notification in the status bar + Always Show Notification + Always show now playing notification when playlist is populated Show Lock Screen Controls Show playback controls on the lock screen Use Stream Proxy diff --git a/res/xml/settings.xml b/res/xml/settings.xml index 707a84cf..0c66e59b 100644 --- a/res/xml/settings.xml +++ b/res/xml/settings.xml @@ -262,6 +262,12 @@ a:key="showNotification" a:defaultValue="true"/> + +