diff --git a/AndroidManifest.xml b/AndroidManifest.xml index b332144a..5a19787c 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -2,8 +2,8 @@ + a:versionCode="23" + a:versionName="1.1.0.19" > diff --git a/gen/com/thejoshwa/ultrasonic/androidapp/R.java b/gen/com/thejoshwa/ultrasonic/androidapp/R.java index 8f75a4db..df65896a 100644 --- a/gen/com/thejoshwa/ultrasonic/androidapp/R.java +++ b/gen/com/thejoshwa/ultrasonic/androidapp/R.java @@ -19,19 +19,21 @@ public final class R { public static final int slide_out_to_top=0x7f040007; } public static final class array { - public static final int bufferLengthNames=0x7f0b000a; + public static final int bufferLengthNames=0x7f0b000c; public static final int bufferLengthValues=0x7f0b0008; public static final int cacheSizeNames=0x7f0b0005; public static final int cacheSizeValues=0x7f0b0004; + public static final int chatRefreshNames=0x7f0b000b; + public static final int chatRefreshValues=0x7f0b000a; public static final int incrementTimeValues=0x7f0b0009; public static final int maxBitrateNames=0x7f0b0007; public static final int maxBitrateValues=0x7f0b0006; - public static final int networkTimeoutNames=0x7f0b000c; - public static final int networkTimeoutValues=0x7f0b000b; + public static final int networkTimeoutNames=0x7f0b000e; + public static final int networkTimeoutValues=0x7f0b000d; public static final int preloadCountNames=0x7f0b0003; public static final int preloadCountValues=0x7f0b0002; - public static final int searchNames=0x7f0b000e; - public static final int searchValues=0x7f0b000d; + public static final int searchNames=0x7f0b0010; + public static final int searchValues=0x7f0b000f; public static final int themeNames=0x7f0b0001; public static final int themeValues=0x7f0b0000; } @@ -888,19 +890,19 @@ or to a theme attribute in the form "?[package:][type:]na public static final int select_album_n_songs_unpinned=0x7f0d0002; } public static final class string { - public static final int background_task_loading=0x7f080123; - public static final int background_task_network_error=0x7f080125; - public static final int background_task_no_network=0x7f080124; - public static final int background_task_not_found=0x7f080126; - public static final int background_task_parse_error=0x7f080127; - public static final int background_task_wait=0x7f080122; + public static final int background_task_loading=0x7f080126; + public static final int background_task_network_error=0x7f080128; + public static final int background_task_no_network=0x7f080127; + public static final int background_task_not_found=0x7f080129; + public static final int background_task_parse_error=0x7f08012a; + public static final int background_task_wait=0x7f080125; public static final int button_bar_browse=0x7f08001a; public static final int button_bar_chat=0x7f08001c; public static final int button_bar_home=0x7f080019; public static final int button_bar_now_playing=0x7f08001e; public static final int button_bar_playlists=0x7f08001d; public static final int button_bar_search=0x7f08001b; - public static final int chat_send_a_message=0x7f08013f; + public static final int chat_send_a_message=0x7f080142; public static final int common_appname=0x7f080006; public static final int common_cancel=0x7f080009; public static final int common_comment=0x7f080016; @@ -953,9 +955,9 @@ or to a theme attribute in the form "?[package:][type:]na public static final int download_repeat_single=0x7f080082; public static final int download_visualizer_off=0x7f080084; public static final int download_visualizer_on=0x7f080083; - public static final int equalizer_enabled=0x7f080134; - public static final int equalizer_label=0x7f080133; - public static final int equalizer_preset=0x7f080135; + public static final int equalizer_enabled=0x7f080137; + public static final int equalizer_label=0x7f080136; + public static final int equalizer_preset=0x7f080138; public static final int error_label=0x7f080093; public static final int help_back=0x7f080048; public static final int help_close=0x7f080049; @@ -1001,14 +1003,14 @@ or to a theme attribute in the form "?[package:][type:]na public static final int menu_settings=0x7f080038; public static final int music_library_label=0x7f080057; public static final int music_library_label_offline=0x7f080058; - public static final int music_service_retry=0x7f080121; - public static final int parser_artist_count=0x7f08012f; - public static final int parser_not_authenticated=0x7f08012d; - public static final int parser_not_authorized=0x7f08012e; - public static final int parser_reading=0x7f080129; - public static final int parser_reading_done=0x7f08012a; - public static final int parser_upgrade_client=0x7f08012b; - public static final int parser_upgrade_server=0x7f08012c; + public static final int music_service_retry=0x7f080124; + public static final int parser_artist_count=0x7f080132; + public static final int parser_not_authenticated=0x7f080130; + public static final int parser_not_authorized=0x7f080131; + public static final int parser_reading=0x7f08012c; + public static final int parser_reading_done=0x7f08012d; + public static final int parser_upgrade_client=0x7f08012e; + public static final int parser_upgrade_server=0x7f08012f; public static final int play_video_loading=0x7f08004c; public static final int play_video_noplugin=0x7f08004d; public static final int playlist_label=0x7f080042; @@ -1050,167 +1052,170 @@ or to a theme attribute in the form "?[package:][type:]na public static final int select_album_play_all=0x7f080060; public static final int select_album_searching=0x7f08005f; public static final int select_album_select=0x7f08005a; - public static final int select_artist_all_folders=0x7f080132; + public static final int select_artist_all_folders=0x7f080135; public static final int select_artist_empty=0x7f080068; - public static final int select_artist_folder=0x7f080131; - public static final int select_artist_refresh=0x7f080130; + public static final int select_artist_folder=0x7f080134; + public static final int select_artist_refresh=0x7f080133; public static final int select_genre_empty=0x7f080069; public static final int select_playlist_empty=0x7f08006a; - public static final int service_connecting=0x7f080128; - public static final int settings_appearance_title=0x7f0800ad; - public static final int settings_buffer_length=0x7f0800e6; - public static final int settings_buffer_length_1=0x7f0800e8; - public static final int settings_buffer_length_10=0x7f0800ec; - public static final int settings_buffer_length_12=0x7f0800ed; - public static final int settings_buffer_length_15=0x7f0800ee; - public static final int settings_buffer_length_2=0x7f0800e9; - public static final int settings_buffer_length_20=0x7f0800ef; - public static final int settings_buffer_length_30=0x7f0800f0; - public static final int settings_buffer_length_5=0x7f0800ea; - public static final int settings_buffer_length_8=0x7f0800eb; - public static final int settings_cache_location=0x7f0800a5; - public static final int settings_cache_location_error=0x7f0800a6; - public static final int settings_cache_size=0x7f0800a4; - public static final int settings_cache_size_100=0x7f0800cd; - public static final int settings_cache_size_1000=0x7f0800d0; - public static final int settings_cache_size_10000=0x7f0800d3; - public static final int settings_cache_size_200=0x7f0800ce; - public static final int settings_cache_size_2000=0x7f0800d1; - public static final int settings_cache_size_20000=0x7f0800d4; - public static final int settings_cache_size_500=0x7f0800cf; - public static final int settings_cache_size_5000=0x7f0800d2; - public static final int settings_cache_size_unlimited=0x7f0800d5; - public static final int settings_cache_title=0x7f0800a2; - public static final int settings_clear_search_history=0x7f0800d6; - public static final int settings_connection_failure=0x7f0800aa; - public static final int settings_default_albums=0x7f080119; - public static final int settings_default_artists=0x7f080118; - public static final int settings_default_songs=0x7f08011a; - public static final int settings_display_bitrate=0x7f0800c1; - public static final int settings_display_bitrate_summary=0x7f0800c2; - public static final int settings_download_transition=0x7f080101; - public static final int settings_download_transition_summary=0x7f080102; - public static final int settings_gapless_playback=0x7f080103; - public static final int settings_gapless_playback_summary=0x7f080104; - public static final int settings_hide_media_summary=0x7f0800e0; - public static final int settings_hide_media_title=0x7f0800df; - public static final int settings_hide_media_toast=0x7f0800e1; - public static final int settings_increment_time=0x7f08011b; - public static final int settings_invalid_url=0x7f0800ab; - public static final int settings_invalid_username=0x7f0800ac; - public static final int settings_max_albums=0x7f080107; - public static final int settings_max_artists=0x7f080116; - public static final int settings_max_bitrate_112=0x7f0800b8; - public static final int settings_max_bitrate_128=0x7f0800b9; - public static final int settings_max_bitrate_160=0x7f0800ba; - public static final int settings_max_bitrate_192=0x7f0800bb; - public static final int settings_max_bitrate_256=0x7f0800bc; - public static final int settings_max_bitrate_32=0x7f0800b4; - public static final int settings_max_bitrate_320=0x7f0800bd; - public static final int settings_max_bitrate_64=0x7f0800b5; - public static final int settings_max_bitrate_80=0x7f0800b6; - public static final int settings_max_bitrate_96=0x7f0800b7; - public static final int settings_max_bitrate_mobile=0x7f0800b3; - public static final int settings_max_bitrate_unlimited=0x7f0800be; - public static final int settings_max_bitrate_wifi=0x7f0800b2; - public static final int settings_max_songs=0x7f080117; - public static final int settings_media_button_summary=0x7f0800e3; - public static final int settings_media_button_title=0x7f0800e2; - public static final int settings_network_timeout=0x7f0800e7; - public static final int settings_network_timeout_105000=0x7f0800f7; - public static final int settings_network_timeout_120000=0x7f0800f8; - public static final int settings_network_timeout_15000=0x7f0800f1; - public static final int settings_network_timeout_30000=0x7f0800f2; - public static final int settings_network_timeout_45000=0x7f0800f3; - public static final int settings_network_timeout_60000=0x7f0800f4; - public static final int settings_network_timeout_75000=0x7f0800f5; - public static final int settings_network_timeout_90000=0x7f0800f6; - public static final int settings_network_title=0x7f0800b1; - public static final int settings_other_title=0x7f0800d8; - public static final int settings_playback_control_title=0x7f0800da; - public static final int settings_preload=0x7f0800a3; - public static final int settings_preload_1=0x7f0800c7; - public static final int settings_preload_10=0x7f0800cb; - public static final int settings_preload_2=0x7f0800c8; - public static final int settings_preload_3=0x7f0800c9; - public static final int settings_preload_5=0x7f0800ca; - public static final int settings_preload_unlimited=0x7f0800cc; - public static final int settings_screen_lit_summary=0x7f0800e5; - public static final int settings_screen_lit_title=0x7f0800e4; - public static final int settings_scrobble_summary=0x7f0800dc; - public static final int settings_scrobble_title=0x7f0800db; - public static final int settings_search_1=0x7f080108; - public static final int settings_search_10=0x7f08010b; - public static final int settings_search_100=0x7f080113; - public static final int settings_search_15=0x7f08010c; - public static final int settings_search_20=0x7f08010d; - public static final int settings_search_25=0x7f08010e; - public static final int settings_search_250=0x7f080114; - public static final int settings_search_3=0x7f080109; - public static final int settings_search_30=0x7f08010f; - public static final int settings_search_40=0x7f080110; - public static final int settings_search_5=0x7f08010a; - public static final int settings_search_50=0x7f080111; - public static final int settings_search_500=0x7f080115; - public static final int settings_search_75=0x7f080112; - public static final int settings_search_history_cleared=0x7f0800d7; - public static final int settings_search_title=0x7f0800d9; + public static final int service_connecting=0x7f08012b; + public static final int settings_appearance_title=0x7f0800ae; + public static final int settings_buffer_length=0x7f0800e7; + public static final int settings_buffer_length_0=0x7f0800e9; + public static final int settings_buffer_length_1=0x7f0800ea; + public static final int settings_buffer_length_10=0x7f0800ee; + public static final int settings_buffer_length_12=0x7f0800ef; + public static final int settings_buffer_length_15=0x7f0800f0; + public static final int settings_buffer_length_2=0x7f0800eb; + public static final int settings_buffer_length_20=0x7f0800f1; + public static final int settings_buffer_length_30=0x7f0800f2; + public static final int settings_buffer_length_5=0x7f0800ec; + public static final int settings_buffer_length_60=0x7f0800f3; + public static final int settings_buffer_length_8=0x7f0800ed; + public static final int settings_cache_location=0x7f0800a6; + public static final int settings_cache_location_error=0x7f0800a7; + public static final int settings_cache_size=0x7f0800a5; + public static final int settings_cache_size_100=0x7f0800ce; + public static final int settings_cache_size_1000=0x7f0800d1; + public static final int settings_cache_size_10000=0x7f0800d4; + public static final int settings_cache_size_200=0x7f0800cf; + public static final int settings_cache_size_2000=0x7f0800d2; + public static final int settings_cache_size_20000=0x7f0800d5; + public static final int settings_cache_size_500=0x7f0800d0; + public static final int settings_cache_size_5000=0x7f0800d3; + public static final int settings_cache_size_unlimited=0x7f0800d6; + public static final int settings_cache_title=0x7f0800a3; + public static final int settings_chat_refresh=0x7f0800a2; + public static final int settings_clear_search_history=0x7f0800d7; + public static final int settings_connection_failure=0x7f0800ab; + public static final int settings_default_albums=0x7f08011c; + public static final int settings_default_artists=0x7f08011b; + public static final int settings_default_songs=0x7f08011d; + public static final int settings_display_bitrate=0x7f0800c2; + public static final int settings_display_bitrate_summary=0x7f0800c3; + public static final int settings_download_transition=0x7f080104; + public static final int settings_download_transition_summary=0x7f080105; + public static final int settings_gapless_playback=0x7f080106; + public static final int settings_gapless_playback_summary=0x7f080107; + public static final int settings_hide_media_summary=0x7f0800e1; + public static final int settings_hide_media_title=0x7f0800e0; + public static final int settings_hide_media_toast=0x7f0800e2; + public static final int settings_increment_time=0x7f08011e; + public static final int settings_invalid_url=0x7f0800ac; + public static final int settings_invalid_username=0x7f0800ad; + public static final int settings_max_albums=0x7f08010a; + public static final int settings_max_artists=0x7f080119; + public static final int settings_max_bitrate_112=0x7f0800b9; + public static final int settings_max_bitrate_128=0x7f0800ba; + public static final int settings_max_bitrate_160=0x7f0800bb; + public static final int settings_max_bitrate_192=0x7f0800bc; + public static final int settings_max_bitrate_256=0x7f0800bd; + public static final int settings_max_bitrate_32=0x7f0800b5; + public static final int settings_max_bitrate_320=0x7f0800be; + public static final int settings_max_bitrate_64=0x7f0800b6; + public static final int settings_max_bitrate_80=0x7f0800b7; + public static final int settings_max_bitrate_96=0x7f0800b8; + public static final int settings_max_bitrate_mobile=0x7f0800b4; + public static final int settings_max_bitrate_unlimited=0x7f0800bf; + public static final int settings_max_bitrate_wifi=0x7f0800b3; + public static final int settings_max_songs=0x7f08011a; + public static final int settings_media_button_summary=0x7f0800e4; + public static final int settings_media_button_title=0x7f0800e3; + public static final int settings_network_timeout=0x7f0800e8; + public static final int settings_network_timeout_105000=0x7f0800fa; + public static final int settings_network_timeout_120000=0x7f0800fb; + public static final int settings_network_timeout_15000=0x7f0800f4; + public static final int settings_network_timeout_30000=0x7f0800f5; + public static final int settings_network_timeout_45000=0x7f0800f6; + public static final int settings_network_timeout_60000=0x7f0800f7; + public static final int settings_network_timeout_75000=0x7f0800f8; + public static final int settings_network_timeout_90000=0x7f0800f9; + public static final int settings_network_title=0x7f0800b2; + public static final int settings_other_title=0x7f0800d9; + public static final int settings_playback_control_title=0x7f0800db; + public static final int settings_preload=0x7f0800a4; + public static final int settings_preload_1=0x7f0800c8; + public static final int settings_preload_10=0x7f0800cc; + public static final int settings_preload_2=0x7f0800c9; + public static final int settings_preload_3=0x7f0800ca; + public static final int settings_preload_5=0x7f0800cb; + public static final int settings_preload_unlimited=0x7f0800cd; + public static final int settings_screen_lit_summary=0x7f0800e6; + public static final int settings_screen_lit_title=0x7f0800e5; + public static final int settings_scrobble_summary=0x7f0800dd; + public static final int settings_scrobble_title=0x7f0800dc; + public static final int settings_search_1=0x7f08010b; + public static final int settings_search_10=0x7f08010e; + public static final int settings_search_100=0x7f080116; + public static final int settings_search_15=0x7f08010f; + public static final int settings_search_20=0x7f080110; + public static final int settings_search_25=0x7f080111; + public static final int settings_search_250=0x7f080117; + public static final int settings_search_3=0x7f08010c; + public static final int settings_search_30=0x7f080112; + public static final int settings_search_40=0x7f080113; + public static final int settings_search_5=0x7f08010d; + public static final int settings_search_50=0x7f080114; + public static final int settings_search_500=0x7f080118; + public static final int settings_search_75=0x7f080115; + public static final int settings_search_history_cleared=0x7f0800d8; + public static final int settings_search_title=0x7f0800da; public static final int settings_server_add_server=0x7f08009c; public static final int settings_server_address=0x7f08009f; public static final int settings_server_name=0x7f08009b; public static final int settings_server_number=0x7f08009d; public static final int settings_server_password=0x7f0800a1; public static final int settings_server_remove_server=0x7f08009e; - public static final int settings_server_scaling_summary=0x7f0800de; - public static final int settings_server_scaling_title=0x7f0800dd; + public static final int settings_server_scaling_summary=0x7f0800df; + public static final int settings_server_scaling_title=0x7f0800de; public static final int settings_server_unused=0x7f080097; public static final int settings_server_unused1=0x7f080098; public static final int settings_server_unused2=0x7f080099; public static final int settings_server_unused3=0x7f08009a; public static final int settings_server_username=0x7f0800a0; public static final int settings_servers_title=0x7f080096; - public static final int settings_show_lockscreen_controls=0x7f0800fd; - public static final int settings_show_lockscreen_controls_summary=0x7f0800fe; - public static final int settings_show_notification=0x7f0800f9; - public static final int settings_show_notification_always=0x7f0800fb; - public static final int settings_show_notification_always_summary=0x7f0800fc; - public static final int settings_show_notification_summary=0x7f0800fa; - public static final int settings_show_now_playing=0x7f080105; - public static final int settings_show_now_playing_summary=0x7f080106; - public static final int settings_show_track_number=0x7f0800c5; - public static final int settings_show_track_number_summary=0x7f0800c6; + public static final int settings_show_lockscreen_controls=0x7f080100; + public static final int settings_show_lockscreen_controls_summary=0x7f080101; + public static final int settings_show_notification=0x7f0800fc; + public static final int settings_show_notification_always=0x7f0800fe; + public static final int settings_show_notification_always_summary=0x7f0800ff; + public static final int settings_show_notification_summary=0x7f0800fd; + public static final int settings_show_now_playing=0x7f080108; + public static final int settings_show_now_playing_summary=0x7f080109; + public static final int settings_show_track_number=0x7f0800c6; + public static final int settings_show_track_number_summary=0x7f0800c7; public static final int settings_test_connection_title=0x7f080095; - public static final int settings_testing_connection=0x7f0800a7; - public static final int settings_testing_ok=0x7f0800a8; - public static final int settings_testing_unlicensed=0x7f0800a9; - public static final int settings_theme_dark=0x7f0800b0; - public static final int settings_theme_light=0x7f0800af; - public static final int settings_theme_title=0x7f0800ae; + public static final int settings_testing_connection=0x7f0800a8; + public static final int settings_testing_ok=0x7f0800a9; + public static final int settings_testing_unlicensed=0x7f0800aa; + public static final int settings_theme_dark=0x7f0800b1; + public static final int settings_theme_light=0x7f0800b0; + public static final int settings_theme_title=0x7f0800af; public static final int settings_title=0x7f080094; - public static final int settings_use_folder_for_album_artist=0x7f0800c3; - public static final int settings_use_folder_for_album_artist_summary=0x7f0800c4; - public static final int settings_use_id3=0x7f08011c; - public static final int settings_use_id3_summary=0x7f08011d; - public static final int settings_use_stream_proxy=0x7f0800ff; - public static final int settings_use_stream_proxy_summary=0x7f080100; - public static final int settings_wifi_required_summary=0x7f0800c0; - public static final int settings_wifi_required_title=0x7f0800bf; - public static final int shuffle_endYear=0x7f08011f; - public static final int shuffle_genre=0x7f080120; - public static final int shuffle_startYear=0x7f08011e; + public static final int settings_use_folder_for_album_artist=0x7f0800c4; + public static final int settings_use_folder_for_album_artist_summary=0x7f0800c5; + public static final int settings_use_id3=0x7f08011f; + public static final int settings_use_id3_summary=0x7f080120; + public static final int settings_use_stream_proxy=0x7f080102; + public static final int settings_use_stream_proxy_summary=0x7f080103; + public static final int settings_wifi_required_summary=0x7f0800c1; + public static final int settings_wifi_required_title=0x7f0800c0; + public static final int shuffle_endYear=0x7f080122; + public static final int shuffle_genre=0x7f080123; + public static final int shuffle_startYear=0x7f080121; public static final int song_details_all=0x7f080090; public static final int song_details_kbps=0x7f080091; public static final int updated_playlist=0x7f08008c; public static final int updated_playlist_error=0x7f08008d; - public static final int util_bytes_format_byte=0x7f08013c; - public static final int util_bytes_format_gigabyte=0x7f080139; - public static final int util_bytes_format_kilobyte=0x7f08013b; - public static final int util_bytes_format_megabyte=0x7f08013a; - public static final int util_no_time=0x7f08013d; - public static final int util_zero_time=0x7f08013e; - public static final int widget_initial_text=0x7f080136; - public static final int widget_sdcard_busy=0x7f080137; - public static final int widget_sdcard_missing=0x7f080138; + public static final int util_bytes_format_byte=0x7f08013f; + public static final int util_bytes_format_gigabyte=0x7f08013c; + public static final int util_bytes_format_kilobyte=0x7f08013e; + public static final int util_bytes_format_megabyte=0x7f08013d; + public static final int util_no_time=0x7f080140; + public static final int util_zero_time=0x7f080141; + public static final int widget_initial_text=0x7f080139; + public static final int widget_sdcard_busy=0x7f08013a; + public static final int widget_sdcard_missing=0x7f08013b; } public static final class style { public static final int MenuDrawer=0x7f0a0005; diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml index 76e1d5de..b66b6199 100644 --- a/res/values-fr/strings.xml +++ b/res/values-fr/strings.xml @@ -17,6 +17,7 @@ Recherche Playlists Lecture en cours + Clavardage Bienvenue! Bienvenue dans UltraSonic ! L\'application n\'est pas configurée. Après avoir configuré votre serveur personnel (disponible à partir de subsonic.org), veuillez accéder aux Paramètres et modifier la configuration pour vous y connecter. Sélectionner un serveur @@ -132,6 +133,7 @@ Adresse du serveur Nom d\'utilisateur Mot de passe + Intervalle de clavardage Cache des musiques Titres à pré-charger Taille du cache @@ -202,6 +204,7 @@ Garder l\'écran allumé pendant le téléchargement permet d\'améliorer la vitesse de téléchargement. Longueur de la mémoire tampon Délai d\'attente de connexion + Désactivé 1 seconde 2 secondes 5 secondes @@ -211,6 +214,7 @@ 15 secondes 20 secondes 30 secondes + 60 secondes 15 secondes 30 secondes 45 secondes @@ -279,6 +283,7 @@ 0 o -:-- 0:00 + Envoyer un message Aucun titre diff --git a/res/values-hu/strings.xml b/res/values-hu/strings.xml index 776c303c..1bf5d4e1 100644 --- a/res/values-hu/strings.xml +++ b/res/values-hu/strings.xml @@ -7,8 +7,8 @@ Lejátszás Lejátszás (Következőként) Lejátszás (Utolsóként) - Kijelöl - Visszavon + Tárolás + Visszavonás Törlés Különféle előadók Többféle műfaj @@ -22,6 +22,7 @@ UltraSonic főoldal Médiakönyvtár Keresés + Csevegés (Chat) Lejátszási listák Lejátszó Üdvözlet! @@ -144,10 +145,10 @@ UltraSonic beállításai Kapcsolat tesztelése Kiszolgálók - Nem használt - Nem használt 1 - Nem használt 2 - Nem használt 3 + Kiszolgáló + Kiszolgáló 1 + Kiszolgáló 2 + Kiszolgáló 3 Név Kiszolgáló hozzáadása Kiszolgálók száma @@ -155,6 +156,7 @@ Kiszolgáló címe Felhasználónév Jelszó + Csevegés frissítési időköz Zene gyorsítótár Dalok előolvasása Gyorsítótár mérete @@ -225,6 +227,7 @@ Képernyő ébrentartása a letöltési sebesség növelése érdekében. Pufferméret Hálózati időtúllépés + Rokkant 1 másodperc 2 másodperc 5 másodperc @@ -234,6 +237,7 @@ 15 másodperc 20 másodperc 30 másodperc + 60 másodperc 15 másodperc 30 másodperc 45 másodperc @@ -304,14 +308,15 @@ Engedélyezve Profil kiválasztása Érintse meg a zene kiválasztásához - Az SD kártya nem érhető el - Nincs SD kártya + Az SD kártya nem elérhető! + Nincs SD kártya! 0.00 GB 0.00 MB 0 KB 0 B -:-- 0:00 + Üzenet küldése Nincsenek dalok @@ -319,12 +324,12 @@ %d dal - 1 dal kijelölve. - %d dal kijelölve. + 1 dal kijelölve tárolásra. + %d dal kijelölve tárolásra. - 1 dal visszavonva. - %d dal visszavonva. + 1 dal tárolása visszavonva. + %d dal tárolása visszavonva. 1 dal hozzáadva a lejátszási sorhoz. diff --git a/res/values/arrays.xml b/res/values/arrays.xml index d7cd7b83..64cb3ee4 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -104,6 +104,34 @@ 20000 30000 + + + 0 + 1000 + 2000 + 5000 + 8000 + 10000 + 12000 + 15000 + 20000 + 30000 + 60000 + + + + @string/settings.buffer_length_0 + @string/settings.buffer_length_1 + @string/settings.buffer_length_2 + @string/settings.buffer_length_5 + @string/settings.buffer_length_8 + @string/settings.buffer_length_10 + @string/settings.buffer_length_12 + @string/settings.buffer_length_15 + @string/settings.buffer_length_20 + @string/settings.buffer_length_30 + @string/settings.buffer_length_60 + @string/settings.buffer_length_1 diff --git a/res/values/strings.xml b/res/values/strings.xml index c3f27531..028f2a6f 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -156,6 +156,7 @@ Server Address Username Password + Chat Refresh Interval Music Cache Songs To Preload Cache Size @@ -226,6 +227,7 @@ Keeping the screen on while downloading improves download speed. Buffer Length Network Timeout + Disabled 1 second 2 seconds 5 seconds @@ -235,6 +237,7 @@ 15 seconds 20 seconds 30 seconds + 60 seconds 15 seconds 30 seconds 45 seconds diff --git a/res/xml/settings.xml b/res/xml/settings.xml index f584f419..1278bd62 100644 --- a/res/xml/settings.xml +++ b/res/xml/settings.xml @@ -37,13 +37,13 @@ a:key="showNowPlaying" a:summary="@string/settings.show_now_playing_summary" a:title="@string/settings.show_now_playing" /> + + - - + a:title="@string/settings.use_id3" /> + + messageList = new ArrayList(); + private Timer timer = null; + private volatile static Long lastChatMessageTime = (long) 0; + private volatile static ArrayList messageList = new ArrayList(); @Override protected void onCreate(Bundle bundle) { @@ -114,13 +115,64 @@ public final class ChatActivity extends SubsonicTabActivity { load(); } + @Override + protected void onPostCreate(Bundle bundle) { + super.onPostCreate(bundle); + + timerMethod(); + } + + @Override + protected void onResume() { + super.onResume(); + + if (!messageList.isEmpty()) { + ChatAdapter chatAdapter = new ChatAdapter(ChatActivity.this, messageList); + chatListView.setAdapter(chatAdapter); + } + + if (timer == null) { + timerMethod(); + } + } + + @Override + protected void onPause() { + super.onPause(); + + if (timer != null) { + timer.cancel(); + timer = null; + } + } + + private void timerMethod() + { + int refreshInterval = Util.getChatRefreshInterval(this); + + if (refreshInterval > 0) { + timer = new Timer(); + + timer.schedule(new TimerTask() { + public void run() { + ChatActivity.this.runOnUiThread(new Runnable() { + @Override + public void run() { + load(); + } + }); + } + }, refreshInterval, refreshInterval); + } + } + private void sendMessage() { final String message = messageEditText.getText().toString(); if (!Util.isNullOrWhiteSpace(message)) { messageEditText.setText(""); - BackgroundTask task = new TabActivityBackgroundTask(ChatActivity.this) { + BackgroundTask task = new TabActivityBackgroundTask(ChatActivity.this, false) { @Override protected Void doInBackground() throws Throwable { MusicService musicService = MusicServiceFactory.getMusicService(ChatActivity.this); @@ -138,18 +190,8 @@ public final class ChatActivity extends SubsonicTabActivity { } } - @Override - protected void onResume() { - super.onResume(); - - if (!messageList.isEmpty()) { - ChatAdapter chatAdapter = new ChatAdapter(ChatActivity.this, messageList); - chatListView.setAdapter(chatAdapter); - } - } - private synchronized void load() { - BackgroundTask> task = new TabActivityBackgroundTask>(this) { + BackgroundTask> task = new TabActivityBackgroundTask>(this, false) { @Override protected List doInBackground() throws Throwable { MusicService musicService = MusicServiceFactory.getMusicService(ChatActivity.this); @@ -179,26 +221,16 @@ public final class ChatActivity extends SubsonicTabActivity { task.execute(); } - private void refresh() { - lastChatMessageTime = (long) 0; - messageList = new ArrayList(); - - finish(); - Intent intent = getIntent(); - intent.putExtra(Constants.INTENT_EXTRA_NAME_REFRESH, true); - Util.startActivityWithoutTransition(this, intent); - } - private class GetDataTask extends AsyncTask { @Override protected void onPostExecute(String[] result) { + load(); refreshChatListView.onRefreshComplete(); super.onPostExecute(result); } @Override protected String[] doInBackground(Void... params) { - refresh(); return null; } } diff --git a/src/com/thejoshwa/ultrasonic/androidapp/activity/HelpActivity.java b/src/com/thejoshwa/ultrasonic/androidapp/activity/HelpActivity.java index 7e1e1549..943d5d1e 100644 --- a/src/com/thejoshwa/ultrasonic/androidapp/activity/HelpActivity.java +++ b/src/com/thejoshwa/ultrasonic/androidapp/activity/HelpActivity.java @@ -86,6 +86,7 @@ public final class HelpActivity extends Activity implements OnClickListener { findViewById(R.id.menu_browse).setOnClickListener(this); searchMenuItem.setOnClickListener(this); playlistsMenuItem.setOnClickListener(this); + findViewById(R.id.menu_chat).setOnClickListener(this); findViewById(R.id.menu_now_playing).setOnClickListener(this); findViewById(R.id.menu_settings).setOnClickListener(this); findViewById(R.id.menu_about).setOnClickListener(this); diff --git a/src/com/thejoshwa/ultrasonic/androidapp/activity/LyricsActivity.java b/src/com/thejoshwa/ultrasonic/androidapp/activity/LyricsActivity.java index 314fc853..2999b247 100644 --- a/src/com/thejoshwa/ultrasonic/androidapp/activity/LyricsActivity.java +++ b/src/com/thejoshwa/ultrasonic/androidapp/activity/LyricsActivity.java @@ -49,7 +49,7 @@ public final class LyricsActivity extends SubsonicTabActivity { } private void load() { - BackgroundTask task = new TabActivityBackgroundTask(this) { + BackgroundTask task = new TabActivityBackgroundTask(this, true) { @Override protected Lyrics doInBackground() throws Throwable { String artist = getIntent().getStringExtra(Constants.INTENT_EXTRA_NAME_ARTIST); diff --git a/src/com/thejoshwa/ultrasonic/androidapp/activity/SearchActivity.java b/src/com/thejoshwa/ultrasonic/androidapp/activity/SearchActivity.java index 03eba231..88414708 100644 --- a/src/com/thejoshwa/ultrasonic/androidapp/activity/SearchActivity.java +++ b/src/com/thejoshwa/ultrasonic/androidapp/activity/SearchActivity.java @@ -268,7 +268,7 @@ public class SearchActivity extends SubsonicTabActivity { final int maxAlbums = Util.getMaxAlbums(this); final int maxSongs = Util.getMaxSongs(this); - BackgroundTask task = new TabActivityBackgroundTask(this) { + BackgroundTask task = new TabActivityBackgroundTask(this, true) { @Override protected SearchResult doInBackground() throws Throwable { SearchCritera criteria = new SearchCritera(query, maxArtists, maxAlbums, maxSongs); diff --git a/src/com/thejoshwa/ultrasonic/androidapp/activity/SelectAlbumActivity.java b/src/com/thejoshwa/ultrasonic/androidapp/activity/SelectAlbumActivity.java index 78145c57..54204847 100644 --- a/src/com/thejoshwa/ultrasonic/androidapp/activity/SelectAlbumActivity.java +++ b/src/com/thejoshwa/ultrasonic/androidapp/activity/SelectAlbumActivity.java @@ -652,7 +652,7 @@ public class SelectAlbumActivity extends SubsonicTabActivity { private abstract class LoadTask extends TabActivityBackgroundTask> { public LoadTask() { - super(SelectAlbumActivity.this); + super(SelectAlbumActivity.this, true); } protected abstract MusicDirectory load(MusicService service) throws Exception; diff --git a/src/com/thejoshwa/ultrasonic/androidapp/activity/SelectArtistActivity.java b/src/com/thejoshwa/ultrasonic/androidapp/activity/SelectArtistActivity.java index e9dd58d9..db0e70ca 100644 --- a/src/com/thejoshwa/ultrasonic/androidapp/activity/SelectArtistActivity.java +++ b/src/com/thejoshwa/ultrasonic/androidapp/activity/SelectArtistActivity.java @@ -123,7 +123,7 @@ public class SelectArtistActivity extends SubsonicTabActivity implements Adapter } private void load() { - BackgroundTask task = new TabActivityBackgroundTask(this) { + BackgroundTask task = new TabActivityBackgroundTask(this, true) { @Override protected Indexes doInBackground() throws Throwable { boolean refresh = getIntent().getBooleanExtra(Constants.INTENT_EXTRA_NAME_REFRESH, false); diff --git a/src/com/thejoshwa/ultrasonic/androidapp/activity/SelectGenreActivity.java b/src/com/thejoshwa/ultrasonic/androidapp/activity/SelectGenreActivity.java index c0f60781..e4b634bf 100644 --- a/src/com/thejoshwa/ultrasonic/androidapp/activity/SelectGenreActivity.java +++ b/src/com/thejoshwa/ultrasonic/androidapp/activity/SelectGenreActivity.java @@ -100,7 +100,7 @@ public class SelectGenreActivity extends SubsonicTabActivity implements AdapterV } private void load() { - BackgroundTask> task = new TabActivityBackgroundTask>(this) { + BackgroundTask> task = new TabActivityBackgroundTask>(this, true) { @Override protected List doInBackground() throws Throwable { MusicService musicService = MusicServiceFactory.getMusicService(SelectGenreActivity.this); diff --git a/src/com/thejoshwa/ultrasonic/androidapp/activity/SelectPlaylistActivity.java b/src/com/thejoshwa/ultrasonic/androidapp/activity/SelectPlaylistActivity.java index e3a81330..cb7589fa 100644 --- a/src/com/thejoshwa/ultrasonic/androidapp/activity/SelectPlaylistActivity.java +++ b/src/com/thejoshwa/ultrasonic/androidapp/activity/SelectPlaylistActivity.java @@ -102,7 +102,7 @@ public class SelectPlaylistActivity extends SubsonicTabActivity implements Adapt } private void load() { - BackgroundTask> task = new TabActivityBackgroundTask>(this) { + BackgroundTask> task = new TabActivityBackgroundTask>(this, true) { @Override protected List doInBackground() throws Throwable { MusicService musicService = MusicServiceFactory.getMusicService(SelectPlaylistActivity.this); diff --git a/src/com/thejoshwa/ultrasonic/androidapp/activity/SettingsActivity.java b/src/com/thejoshwa/ultrasonic/androidapp/activity/SettingsActivity.java index 3ac13b53..7cc10a4f 100644 --- a/src/com/thejoshwa/ultrasonic/androidapp/activity/SettingsActivity.java +++ b/src/com/thejoshwa/ultrasonic/androidapp/activity/SettingsActivity.java @@ -77,6 +77,7 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer private ListPreference defaultAlbums; private ListPreference defaultSongs; private ListPreference defaultArtists; + private ListPreference chatRefreshInterval; private CheckBoxPreference mediaButtonsEnabled; private CheckBoxPreference lockScreenEnabled; private CheckBoxPreference gaplessPlaybackEnabled; @@ -119,6 +120,7 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer findViewById(R.id.menu_browse).setOnClickListener(this); searchMenuItem.setOnClickListener(this); playlistsMenuItem.setOnClickListener(this); + findViewById(R.id.menu_chat).setOnClickListener(this); findViewById(R.id.menu_now_playing).setOnClickListener(this); findViewById(R.id.menu_settings).setOnClickListener(this); findViewById(R.id.menu_about).setOnClickListener(this); @@ -150,6 +152,7 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer defaultArtists = (ListPreference) findPreference(Constants.PREFERENCES_KEY_DEFAULT_ARTISTS); defaultSongs = (ListPreference) findPreference(Constants.PREFERENCES_KEY_DEFAULT_SONGS); defaultAlbums = (ListPreference) findPreference(Constants.PREFERENCES_KEY_DEFAULT_ALBUMS); + chatRefreshInterval = (ListPreference) findPreference(Constants.PREFERENCES_KEY_CHAT_REFRESH_INTERVAL); mediaButtonsEnabled = (CheckBoxPreference) findPreference(Constants.PREFERENCES_KEY_MEDIA_BUTTONS); lockScreenEnabled = (CheckBoxPreference) findPreference(Constants.PREFERENCES_KEY_SHOW_LOCK_SCREEN_CONTROLS); gaplessPlaybackEnabled = (CheckBoxPreference) findPreference(Constants.PREFERENCES_KEY_GAPLESS_PLAYBACK); @@ -402,6 +405,7 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer defaultAlbums.setSummary(defaultAlbums.getEntry()); defaultArtists.setSummary(defaultArtists.getEntry()); defaultSongs.setSummary(defaultSongs.getEntry()); + chatRefreshInterval.setSummary(chatRefreshInterval.getEntry()); if (!mediaButtonsEnabled.isChecked()) { lockScreenEnabled.setChecked(false); diff --git a/src/com/thejoshwa/ultrasonic/androidapp/activity/SubsonicTabActivity.java b/src/com/thejoshwa/ultrasonic/androidapp/activity/SubsonicTabActivity.java index d8821c7e..3428bcee 100644 --- a/src/com/thejoshwa/ultrasonic/androidapp/activity/SubsonicTabActivity.java +++ b/src/com/thejoshwa/ultrasonic/androidapp/activity/SubsonicTabActivity.java @@ -93,8 +93,7 @@ public class SubsonicTabActivity extends Activity implements OnClickListener{ private int activePosition = 1; private int menuActiveViewId; private View nowPlayingView = null; - View searchMenuItem = null; - View playlistsMenuItem = null; + View chatMenuItem = null; View menuMain = null; public static boolean nowPlayingHidden = false; private static Entry currentSong; @@ -118,14 +117,13 @@ public class SubsonicTabActivity extends Activity implements OnClickListener{ menuDrawer = MenuDrawer.attach(this, MenuDrawer.MENU_DRAG_WINDOW, Position.LEFT); menuDrawer.setMenuView(R.layout.menu_main); - searchMenuItem = findViewById(R.id.menu_search); - playlistsMenuItem = findViewById(R.id.menu_playlists); + chatMenuItem = findViewById(R.id.menu_chat); findViewById(R.id.menu_home).setOnClickListener(this); findViewById(R.id.menu_browse).setOnClickListener(this); - searchMenuItem.setOnClickListener(this); - playlistsMenuItem.setOnClickListener(this); - findViewById(R.id.menu_chat).setOnClickListener(this); + findViewById(R.id.menu_search).setOnClickListener(this); + findViewById(R.id.menu_playlists).setOnClickListener(this); + chatMenuItem.setOnClickListener(this); findViewById(R.id.menu_now_playing).setOnClickListener(this); findViewById(R.id.menu_settings).setOnClickListener(this); findViewById(R.id.menu_about).setOnClickListener(this); @@ -144,6 +142,9 @@ public class SubsonicTabActivity extends Activity implements OnClickListener{ protected void onPostCreate(Bundle bundle) { super.onPostCreate(bundle); instance = this; + + int visibility = Util.isOffline(this) ? View.GONE : View.VISIBLE; + chatMenuItem.setVisibility(visibility); } @Override diff --git a/src/com/thejoshwa/ultrasonic/androidapp/service/DownloadServiceImpl.java b/src/com/thejoshwa/ultrasonic/androidapp/service/DownloadServiceImpl.java index 49282ea3..e034bd4d 100644 --- a/src/com/thejoshwa/ultrasonic/androidapp/service/DownloadServiceImpl.java +++ b/src/com/thejoshwa/ultrasonic/androidapp/service/DownloadServiceImpl.java @@ -1518,7 +1518,7 @@ public class DownloadServiceImpl extends Service implements DownloadService { public void execute() { setPlayerState(DOWNLOADING); - while (!bufferComplete()) { + while (!bufferComplete() && !Util.isOffline(DownloadServiceImpl.this)) { Util.sleepQuietly(1000L); if (isCancelled()) { return; diff --git a/src/com/thejoshwa/ultrasonic/androidapp/util/Constants.java b/src/com/thejoshwa/ultrasonic/androidapp/util/Constants.java index e4faeda5..d5bd8f9c 100644 --- a/src/com/thejoshwa/ultrasonic/androidapp/util/Constants.java +++ b/src/com/thejoshwa/ultrasonic/androidapp/util/Constants.java @@ -116,6 +116,7 @@ public final class Constants { public static final String PREFERENCES_KEY_INCREMENT_TIME = "incrementTime"; public static final String PREFERENCES_KEY_ID3_TAGS = "useId3Tags"; public static final String PREFERENCES_KEY_TEMP_LOSS = "tempLoss"; + public static final String PREFERENCES_KEY_CHAT_REFRESH_INTERVAL = "chatRefreshInterval"; // Name of the preferences file. public static final String PREFERENCES_FILE_NAME = "com.thejoshwa.ultrasonic.androidapp_preferences"; diff --git a/src/com/thejoshwa/ultrasonic/androidapp/util/TabActivityBackgroundTask.java b/src/com/thejoshwa/ultrasonic/androidapp/util/TabActivityBackgroundTask.java index 40811831..75c573a9 100644 --- a/src/com/thejoshwa/ultrasonic/androidapp/util/TabActivityBackgroundTask.java +++ b/src/com/thejoshwa/ultrasonic/androidapp/util/TabActivityBackgroundTask.java @@ -9,15 +9,19 @@ import com.thejoshwa.ultrasonic.androidapp.activity.SubsonicTabActivity; public abstract class TabActivityBackgroundTask extends BackgroundTask { private final SubsonicTabActivity tabActivity; + private final boolean changeProgress; - public TabActivityBackgroundTask(SubsonicTabActivity activity) { + public TabActivityBackgroundTask(SubsonicTabActivity activity, boolean changeProgress) { super(activity); tabActivity = activity; + this.changeProgress = changeProgress; } @Override public void execute() { - tabActivity.setProgressVisible(true); + if (changeProgress) { + tabActivity.setProgressVisible(true); + } new Thread() { @Override @@ -31,7 +35,10 @@ public abstract class TabActivityBackgroundTask extends BackgroundTask { getHandler().post(new Runnable() { @Override public void run() { - tabActivity.setProgressVisible(false); + if (changeProgress) { + tabActivity.setProgressVisible(false); + } + done(result); } }); @@ -42,7 +49,10 @@ public abstract class TabActivityBackgroundTask extends BackgroundTask { getHandler().post(new Runnable() { @Override public void run() { - tabActivity.setProgressVisible(false); + if (changeProgress) { + tabActivity.setProgressVisible(false); + } + error(t); } }); diff --git a/src/com/thejoshwa/ultrasonic/androidapp/util/Util.java b/src/com/thejoshwa/ultrasonic/androidapp/util/Util.java index 1577aeeb..175b5911 100644 --- a/src/com/thejoshwa/ultrasonic/androidapp/util/Util.java +++ b/src/com/thejoshwa/ultrasonic/androidapp/util/Util.java @@ -1235,6 +1235,11 @@ public class Util extends DownloadActivity { return prefs.getBoolean(Constants.PREFERENCES_KEY_ID3_TAGS, false); } + public static int getChatRefreshInterval(Context context) { + SharedPreferences prefs = getPreferences(context); + return Integer.parseInt(prefs.getString(Constants.PREFERENCES_KEY_CHAT_REFRESH_INTERVAL, "5000")); + } + public static boolean isNullOrWhiteSpace(String string) { return string == null || string.isEmpty() || string.trim().isEmpty(); }