More Cleanup - Fix Widget
BIN
bin/classes.dex
Before Width: | Height: | Size: 213 B After Width: | Height: | Size: 220 B |
Before Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 96 B After Width: | Height: | Size: 162 B |
Before Width: | Height: | Size: 244 B After Width: | Height: | Size: 382 B |
After Width: | Height: | Size: 2.0 KiB |
|
@ -44,94 +44,94 @@ public final class R {
|
|||
public static final int action_bar_bg=0x7f020000;
|
||||
public static final int album_art_background=0x7f020001;
|
||||
public static final int appwidget_art_default=0x7f020002;
|
||||
public static final int appwidget_art_unknown=0x7f020003;
|
||||
public static final int appwidget_bg=0x7f020004;
|
||||
public static final int appwidget_button_background=0x7f020005;
|
||||
public static final int appwidget_button_background_r=0x7f020006;
|
||||
public static final int appwidget_button_center=0x7f020007;
|
||||
public static final int appwidget_button_left=0x7f020008;
|
||||
public static final int appwidget_button_right=0x7f020009;
|
||||
public static final int appwidget_divider=0x7f02000a;
|
||||
public static final int appwidget_divider_horizontal=0x7f02000b;
|
||||
public static final int appwidget_divider_vertical=0x7f02000c;
|
||||
public static final int appwidget_inner_focus_c=0x7f02000d;
|
||||
public static final int appwidget_inner_focus_l=0x7f02000e;
|
||||
public static final int appwidget_inner_focus_r=0x7f02000f;
|
||||
public static final int appwidget_inner_press_c=0x7f020010;
|
||||
public static final int appwidget_inner_press_l=0x7f020011;
|
||||
public static final int appwidget_inner_press_r=0x7f020012;
|
||||
public static final int appwidget_overlay=0x7f020013;
|
||||
public static final int btn_check_buttonless_off=0x7f020014;
|
||||
public static final int btn_check_buttonless_on=0x7f020015;
|
||||
public static final int btn_check_custom=0x7f020016;
|
||||
public static final int buttonbar_selector=0x7f020017;
|
||||
public static final int ic_appwidget_music_next=0x7f020018;
|
||||
public static final int ic_appwidget_music_pause=0x7f020019;
|
||||
public static final int ic_appwidget_music_play=0x7f02001a;
|
||||
public static final int ic_appwidget_music_previous=0x7f02001b;
|
||||
public static final int ic_launcher=0x7f02001c;
|
||||
public static final int ic_menu_browse=0x7f02001d;
|
||||
public static final int ic_menu_compass=0x7f02001e;
|
||||
public static final int ic_menu_exit=0x7f02001f;
|
||||
public static final int ic_menu_help=0x7f020020;
|
||||
public static final int ic_menu_home=0x7f020021;
|
||||
public static final int ic_menu_moreoverflow=0x7f020022;
|
||||
public static final int ic_menu_offline=0x7f020023;
|
||||
public static final int ic_menu_play_all=0x7f020024;
|
||||
public static final int ic_menu_playlists=0x7f020025;
|
||||
public static final int ic_menu_refresh=0x7f020026;
|
||||
public static final int ic_menu_remove_all=0x7f020027;
|
||||
public static final int ic_menu_save=0x7f020028;
|
||||
public static final int ic_menu_screen_on_off=0x7f020029;
|
||||
public static final int ic_menu_search=0x7f02002a;
|
||||
public static final int ic_menu_select_artist_folder=0x7f02002b;
|
||||
public static final int ic_menu_settings=0x7f02002c;
|
||||
public static final int ic_menu_share=0x7f02002d;
|
||||
public static final int ic_menu_shuffle=0x7f02002e;
|
||||
public static final int ic_stat_downloaded=0x7f02002f;
|
||||
public static final int ic_stat_downloading=0x7f020030;
|
||||
public static final int ic_stat_play=0x7f020031;
|
||||
public static final int ic_stat_saved=0x7f020032;
|
||||
public static final int ic_stat_subsonic=0x7f020033;
|
||||
public static final int list_background=0x7f020034;
|
||||
public static final int list_focused_holo=0x7f020035;
|
||||
public static final int list_item_more=0x7f020036;
|
||||
public static final int list_longpressed_holo=0x7f020037;
|
||||
public static final int list_pressed_holo_dark=0x7f020038;
|
||||
public static final int list_pressed_holo_light=0x7f020039;
|
||||
public static final int list_selector_background_transition_holo_dark=0x7f02003a;
|
||||
public static final int list_selector_background_transition_holo_light=0x7f02003b;
|
||||
public static final int list_selector_disabled_holo_dark=0x7f02003c;
|
||||
public static final int list_selector_disabled_holo_light=0x7f02003d;
|
||||
public static final int list_selector_holo_dark=0x7f02003e;
|
||||
public static final int list_selector_holo_light=0x7f02003f;
|
||||
public static final int main_header_icon=0x7f020040;
|
||||
public static final int media_backward=0x7f020041;
|
||||
public static final int media_backward_normal=0x7f020042;
|
||||
public static final int media_backward_pressed=0x7f020043;
|
||||
public static final int media_forward=0x7f020044;
|
||||
public static final int media_forward_normal=0x7f020045;
|
||||
public static final int media_forward_pressed=0x7f020046;
|
||||
public static final int media_pause=0x7f020047;
|
||||
public static final int media_pause_normal=0x7f020048;
|
||||
public static final int media_pause_pressed=0x7f020049;
|
||||
public static final int media_repeat_all=0x7f02004a;
|
||||
public static final int media_repeat_off=0x7f02004b;
|
||||
public static final int media_repeat_single=0x7f02004c;
|
||||
public static final int media_shuffle=0x7f02004d;
|
||||
public static final int media_shuffle_normal=0x7f02004e;
|
||||
public static final int media_shuffle_pressed=0x7f02004f;
|
||||
public static final int media_start=0x7f020050;
|
||||
public static final int media_start_normal=0x7f020051;
|
||||
public static final int media_start_pressed=0x7f020052;
|
||||
public static final int media_stop=0x7f020053;
|
||||
public static final int media_stop_normal=0x7f020054;
|
||||
public static final int media_stop_pressed=0x7f020055;
|
||||
public static final int media_toggle_list=0x7f020056;
|
||||
public static final int media_toggle_list_normal=0x7f020057;
|
||||
public static final int media_toggle_list_pressed=0x7f020058;
|
||||
public static final int menubar_button_disabled=0x7f020059;
|
||||
public static final int menubar_button_normal=0x7f02005a;
|
||||
public static final int appwidget_bg=0x7f020003;
|
||||
public static final int appwidget_button_background=0x7f020004;
|
||||
public static final int appwidget_button_background_r=0x7f020005;
|
||||
public static final int appwidget_button_center=0x7f020006;
|
||||
public static final int appwidget_button_left=0x7f020007;
|
||||
public static final int appwidget_button_right=0x7f020008;
|
||||
public static final int appwidget_divider=0x7f020009;
|
||||
public static final int appwidget_divider_horizontal=0x7f02000a;
|
||||
public static final int appwidget_divider_vertical=0x7f02000b;
|
||||
public static final int appwidget_inner_focus_c=0x7f02000c;
|
||||
public static final int appwidget_inner_focus_l=0x7f02000d;
|
||||
public static final int appwidget_inner_focus_r=0x7f02000e;
|
||||
public static final int appwidget_inner_press_c=0x7f02000f;
|
||||
public static final int appwidget_inner_press_l=0x7f020010;
|
||||
public static final int appwidget_inner_press_r=0x7f020011;
|
||||
public static final int appwidget_overlay=0x7f020012;
|
||||
public static final int btn_check_buttonless_off=0x7f020013;
|
||||
public static final int btn_check_buttonless_on=0x7f020014;
|
||||
public static final int btn_check_custom=0x7f020015;
|
||||
public static final int buttonbar_selector=0x7f020016;
|
||||
public static final int ic_appwidget_music_next=0x7f020017;
|
||||
public static final int ic_appwidget_music_pause=0x7f020018;
|
||||
public static final int ic_appwidget_music_play=0x7f020019;
|
||||
public static final int ic_appwidget_music_previous=0x7f02001a;
|
||||
public static final int ic_launcher=0x7f02001b;
|
||||
public static final int ic_menu_browse=0x7f02001c;
|
||||
public static final int ic_menu_compass=0x7f02001d;
|
||||
public static final int ic_menu_exit=0x7f02001e;
|
||||
public static final int ic_menu_help=0x7f02001f;
|
||||
public static final int ic_menu_home=0x7f020020;
|
||||
public static final int ic_menu_moreoverflow=0x7f020021;
|
||||
public static final int ic_menu_offline=0x7f020022;
|
||||
public static final int ic_menu_play_all=0x7f020023;
|
||||
public static final int ic_menu_playlists=0x7f020024;
|
||||
public static final int ic_menu_refresh=0x7f020025;
|
||||
public static final int ic_menu_remove_all=0x7f020026;
|
||||
public static final int ic_menu_save=0x7f020027;
|
||||
public static final int ic_menu_screen_on_off=0x7f020028;
|
||||
public static final int ic_menu_search=0x7f020029;
|
||||
public static final int ic_menu_select_artist_folder=0x7f02002a;
|
||||
public static final int ic_menu_settings=0x7f02002b;
|
||||
public static final int ic_menu_share=0x7f02002c;
|
||||
public static final int ic_menu_shuffle=0x7f02002d;
|
||||
public static final int ic_stat_downloaded=0x7f02002e;
|
||||
public static final int ic_stat_downloading=0x7f02002f;
|
||||
public static final int ic_stat_play=0x7f020030;
|
||||
public static final int ic_stat_saved=0x7f020031;
|
||||
public static final int ic_stat_subsonic=0x7f020032;
|
||||
public static final int list_background=0x7f020033;
|
||||
public static final int list_focused_holo=0x7f020034;
|
||||
public static final int list_item_more=0x7f020035;
|
||||
public static final int list_longpressed_holo=0x7f020036;
|
||||
public static final int list_pressed_holo_dark=0x7f020037;
|
||||
public static final int list_pressed_holo_light=0x7f020038;
|
||||
public static final int list_selector_background_transition_holo_dark=0x7f020039;
|
||||
public static final int list_selector_background_transition_holo_light=0x7f02003a;
|
||||
public static final int list_selector_disabled_holo_dark=0x7f02003b;
|
||||
public static final int list_selector_disabled_holo_light=0x7f02003c;
|
||||
public static final int list_selector_holo_dark=0x7f02003d;
|
||||
public static final int list_selector_holo_light=0x7f02003e;
|
||||
public static final int main_header_icon=0x7f02003f;
|
||||
public static final int media_backward=0x7f020040;
|
||||
public static final int media_backward_normal=0x7f020041;
|
||||
public static final int media_backward_pressed=0x7f020042;
|
||||
public static final int media_forward=0x7f020043;
|
||||
public static final int media_forward_normal=0x7f020044;
|
||||
public static final int media_forward_pressed=0x7f020045;
|
||||
public static final int media_pause=0x7f020046;
|
||||
public static final int media_pause_normal=0x7f020047;
|
||||
public static final int media_pause_pressed=0x7f020048;
|
||||
public static final int media_repeat_all=0x7f020049;
|
||||
public static final int media_repeat_off=0x7f02004a;
|
||||
public static final int media_repeat_single=0x7f02004b;
|
||||
public static final int media_shuffle=0x7f02004c;
|
||||
public static final int media_shuffle_normal=0x7f02004d;
|
||||
public static final int media_shuffle_pressed=0x7f02004e;
|
||||
public static final int media_start=0x7f02004f;
|
||||
public static final int media_start_normal=0x7f020050;
|
||||
public static final int media_start_pressed=0x7f020051;
|
||||
public static final int media_stop=0x7f020052;
|
||||
public static final int media_stop_normal=0x7f020053;
|
||||
public static final int media_stop_pressed=0x7f020054;
|
||||
public static final int media_toggle_list=0x7f020055;
|
||||
public static final int media_toggle_list_normal=0x7f020056;
|
||||
public static final int media_toggle_list_pressed=0x7f020057;
|
||||
public static final int menubar_button_disabled=0x7f020058;
|
||||
public static final int menubar_button_normal=0x7f020059;
|
||||
public static final int preview=0x7f02005a;
|
||||
public static final int progress_bg_holo_dark=0x7f02005b;
|
||||
public static final int progress_horizontal_holo_dark=0x7f02005c;
|
||||
public static final int progress_primary_holo_dark=0x7f02005d;
|
||||
|
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 96 B After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.5 KiB |
|
@ -81,6 +81,7 @@
|
|||
a:layout_height="fill_parent"
|
||||
a:layout_marginBottom="5dp"
|
||||
a:layout_marginTop="8dp"
|
||||
a:layout_weight="0.01"
|
||||
a:background="@color/dividerColor" />
|
||||
|
||||
<ImageButton
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<appwidget-provider xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:minWidth="294dip"
|
||||
a:minHeight="72dip"
|
||||
a:minWidth="272dp"
|
||||
a:minHeight="56dp"
|
||||
a:updatePeriodMillis="0"
|
||||
a:resizeMode="horizontal|vertical"
|
||||
a:previewImage="@drawable/preview"
|
||||
a:initialLayout="@layout/appwidget"/>
|
|
@ -160,14 +160,14 @@ public class SubsonicAppWidgetProvider extends AppWidgetProvider {
|
|||
|
||||
if (bitmap == null) {
|
||||
// Set default cover art
|
||||
views.setImageViewResource(R.id.appwidget_coverart, R.drawable.appwidget_art_unknown);
|
||||
views.setImageViewResource(R.id.appwidget_coverart, R.drawable.appwidget_art_default);
|
||||
} else {
|
||||
bitmap = getRoundedCornerBitmap(bitmap);
|
||||
views.setImageViewBitmap(R.id.appwidget_coverart, bitmap);
|
||||
}
|
||||
} catch (Exception x) {
|
||||
Log.e(TAG, "Failed to load cover art", x);
|
||||
views.setImageViewResource(R.id.appwidget_coverart, R.drawable.appwidget_art_unknown);
|
||||
views.setImageViewResource(R.id.appwidget_coverart, R.drawable.appwidget_art_default);
|
||||
}
|
||||
|
||||
// Link actions buttons to intents
|
||||
|
|