Permalink
Browse files

Power control widget holofied

-brightness needs to implement brightness_half_holo state
*fixed now in the patch { old assets should be removed also(any "appwidget" that doesn't have holo in it)}

Change-Id: I2c1e754f68cf321c5b3517ba92c8f235b418e696
  • Loading branch information...
Peter Ng
Peter Ng committed Aug 30, 2011
1 parent 427a7ba commit a1252ccf7b31d01a9612fc0479dc7a632cabf8a7
Showing with 34 additions and 34 deletions.
  1. BIN res/drawable-hdpi/appwidget_bg.9.png
  2. BIN res/drawable-hdpi/appwidget_bg_focused_holo.9.png
  3. BIN res/drawable-hdpi/appwidget_bg_holo.9.png
  4. BIN res/drawable-hdpi/appwidget_bg_pressed_holo.9.png
  5. BIN res/drawable-hdpi/appwidget_inner_focus_c.9.png
  6. BIN res/drawable-hdpi/appwidget_inner_focus_l.9.png
  7. BIN res/drawable-hdpi/appwidget_inner_focus_r.9.png
  8. BIN res/drawable-hdpi/appwidget_inner_focused_c_holo.9.png
  9. BIN res/drawable-hdpi/appwidget_inner_focused_l_holo.9.png
  10. BIN res/drawable-hdpi/appwidget_inner_focused_r_holo.9.png
  11. BIN res/drawable-hdpi/appwidget_inner_press_c.9.png
  12. BIN res/drawable-hdpi/appwidget_inner_press_l.9.png
  13. BIN res/drawable-hdpi/appwidget_inner_press_r.9.png
  14. BIN res/drawable-hdpi/appwidget_inner_pressed_c_holo.9.png
  15. BIN res/drawable-hdpi/appwidget_inner_pressed_l_holo.9.png
  16. BIN res/drawable-hdpi/appwidget_inner_pressed_r_holo.9.png
  17. BIN res/drawable-hdpi/appwidget_settings_divider.9.png
  18. BIN res/drawable-hdpi/appwidget_settings_divider_holo.9.png
  19. BIN res/drawable-hdpi/appwidget_settings_ind_mid_c.9.png
  20. BIN res/drawable-hdpi/appwidget_settings_ind_mid_c_holo.9.png
  21. BIN res/drawable-hdpi/appwidget_settings_ind_mid_l.9.png
  22. BIN res/drawable-hdpi/appwidget_settings_ind_mid_l_holo.9.png
  23. BIN res/drawable-hdpi/appwidget_settings_ind_mid_r.9.png
  24. BIN res/drawable-hdpi/appwidget_settings_ind_mid_r_holo.9.png
  25. BIN res/drawable-hdpi/appwidget_settings_ind_off_c.9.png
  26. BIN res/drawable-hdpi/appwidget_settings_ind_off_c_holo.9.png
  27. BIN res/drawable-hdpi/appwidget_settings_ind_off_l.9.png
  28. BIN res/drawable-hdpi/appwidget_settings_ind_off_l_holo.9.png
  29. BIN res/drawable-hdpi/appwidget_settings_ind_off_r.9.png
  30. BIN res/drawable-hdpi/appwidget_settings_ind_off_r_holo.9.png
  31. BIN res/drawable-hdpi/appwidget_settings_ind_on_c.9.png
  32. BIN res/drawable-hdpi/appwidget_settings_ind_on_c_holo.9.png
  33. BIN res/drawable-hdpi/appwidget_settings_ind_on_l.9.png
  34. BIN res/drawable-hdpi/appwidget_settings_ind_on_l_holo.9.png
  35. BIN res/drawable-hdpi/appwidget_settings_ind_on_r.9.png
  36. BIN res/drawable-hdpi/appwidget_settings_ind_on_r_holo.9.png
  37. BIN res/drawable-hdpi/ic_appwidget_settings_bluetooth_off.png
  38. BIN res/drawable-hdpi/ic_appwidget_settings_bluetooth_off_holo.png
  39. BIN res/drawable-hdpi/ic_appwidget_settings_bluetooth_on.png
  40. BIN res/drawable-hdpi/ic_appwidget_settings_bluetooth_on_holo.png
  41. BIN res/drawable-hdpi/ic_appwidget_settings_brightness_auto.png
  42. BIN res/drawable-hdpi/ic_appwidget_settings_brightness_auto_holo.png
  43. BIN res/drawable-hdpi/ic_appwidget_settings_brightness_full_holo.png
  44. BIN res/drawable-hdpi/ic_appwidget_settings_brightness_half_holo.png
  45. BIN res/drawable-hdpi/ic_appwidget_settings_brightness_off.png
  46. BIN res/drawable-hdpi/ic_appwidget_settings_brightness_off_holo.png
  47. BIN res/drawable-hdpi/ic_appwidget_settings_brightness_on.png
  48. BIN res/drawable-hdpi/ic_appwidget_settings_gps_off.png
  49. BIN res/drawable-hdpi/ic_appwidget_settings_gps_off_holo.png
  50. BIN res/drawable-hdpi/ic_appwidget_settings_gps_on.png
  51. BIN res/drawable-hdpi/ic_appwidget_settings_gps_on_holo.png
  52. BIN res/drawable-hdpi/ic_appwidget_settings_sync_off.png
  53. BIN res/drawable-hdpi/ic_appwidget_settings_sync_off_holo.png
  54. BIN res/drawable-hdpi/ic_appwidget_settings_sync_on.png
  55. BIN res/drawable-hdpi/ic_appwidget_settings_sync_on_holo.png
  56. BIN res/drawable-hdpi/ic_appwidget_settings_wifi_off.png
  57. BIN res/drawable-hdpi/ic_appwidget_settings_wifi_off_holo.png
  58. BIN res/drawable-hdpi/ic_appwidget_settings_wifi_on.png
  59. BIN res/drawable-hdpi/ic_appwidget_settings_wifi_on_holo.png
  60. BIN res/drawable-mdpi/appwidget_bg.9.png
  61. BIN res/drawable-mdpi/appwidget_bg_focused_holo.9.png
  62. BIN res/drawable-mdpi/appwidget_bg_holo.9.png
  63. BIN res/drawable-mdpi/appwidget_bg_pressed_holo.9.png
  64. BIN res/drawable-mdpi/appwidget_inner_focus_c.9.png
  65. BIN res/drawable-mdpi/appwidget_inner_focus_l.9.png
  66. BIN res/drawable-mdpi/appwidget_inner_focus_r.9.png
  67. BIN res/drawable-mdpi/appwidget_inner_focused_c_holo.9.png
  68. BIN res/drawable-mdpi/appwidget_inner_focused_l_holo.9.png
  69. BIN res/drawable-mdpi/appwidget_inner_focused_r_holo.9.png
  70. BIN res/drawable-mdpi/appwidget_inner_press_c.9.png
  71. BIN res/drawable-mdpi/appwidget_inner_press_l.9.png
  72. BIN res/drawable-mdpi/appwidget_inner_press_r.9.png
  73. BIN res/drawable-mdpi/appwidget_inner_pressed_c_holo.9.png
  74. BIN res/drawable-mdpi/appwidget_inner_pressed_l_holo.9.png
  75. BIN res/drawable-mdpi/appwidget_inner_pressed_r_holo.9.png
  76. BIN res/drawable-mdpi/appwidget_settings_divider.9.png
  77. BIN res/drawable-mdpi/appwidget_settings_divider_holo.9.png
  78. BIN res/drawable-mdpi/appwidget_settings_ind_mid_c.9.png
  79. BIN res/drawable-mdpi/appwidget_settings_ind_mid_c_holo.9.png
  80. BIN res/drawable-mdpi/appwidget_settings_ind_mid_l.9.png
  81. BIN res/drawable-mdpi/appwidget_settings_ind_mid_l_holo.9.png
  82. BIN res/drawable-mdpi/appwidget_settings_ind_mid_r.9.png
  83. BIN res/drawable-mdpi/appwidget_settings_ind_mid_r_holo.9.png
  84. BIN res/drawable-mdpi/appwidget_settings_ind_off_c.9.png
  85. BIN res/drawable-mdpi/appwidget_settings_ind_off_c_holo.9.png
  86. BIN res/drawable-mdpi/appwidget_settings_ind_off_l.9.png
  87. BIN res/drawable-mdpi/appwidget_settings_ind_off_l_holo.9.png
  88. BIN res/drawable-mdpi/appwidget_settings_ind_off_r.9.png
  89. BIN res/drawable-mdpi/appwidget_settings_ind_off_r_holo.9.png
  90. BIN res/drawable-mdpi/appwidget_settings_ind_on_c.9.png
  91. BIN res/drawable-mdpi/appwidget_settings_ind_on_c_holo.9.png
  92. BIN res/drawable-mdpi/appwidget_settings_ind_on_l.9.png
  93. BIN res/drawable-mdpi/appwidget_settings_ind_on_l_holo.9.png
  94. BIN res/drawable-mdpi/appwidget_settings_ind_on_r.9.png
  95. BIN res/drawable-mdpi/appwidget_settings_ind_on_r_holo.9.png
  96. BIN res/drawable-mdpi/ic_appwidget_settings_bluetooth_off.png
  97. BIN res/drawable-mdpi/ic_appwidget_settings_bluetooth_off_holo.png
  98. BIN res/drawable-mdpi/ic_appwidget_settings_bluetooth_on.png
  99. BIN res/drawable-mdpi/ic_appwidget_settings_bluetooth_on_holo.png
  100. BIN res/drawable-mdpi/ic_appwidget_settings_brightness_auto.png
  101. BIN res/drawable-mdpi/ic_appwidget_settings_brightness_auto_holo.png
  102. BIN res/drawable-mdpi/ic_appwidget_settings_brightness_full_holo.png
  103. BIN res/drawable-mdpi/ic_appwidget_settings_brightness_half_holo.png
  104. BIN res/drawable-mdpi/ic_appwidget_settings_brightness_off.png
  105. BIN res/drawable-mdpi/ic_appwidget_settings_brightness_off_holo.png
  106. BIN res/drawable-mdpi/ic_appwidget_settings_brightness_on.png
  107. BIN res/drawable-mdpi/ic_appwidget_settings_gps_off.png
  108. BIN res/drawable-mdpi/ic_appwidget_settings_gps_off_holo.png
  109. BIN res/drawable-mdpi/ic_appwidget_settings_gps_on.png
  110. BIN res/drawable-mdpi/ic_appwidget_settings_gps_on_holo.png
  111. BIN res/drawable-mdpi/ic_appwidget_settings_sync_off.png
  112. BIN res/drawable-mdpi/ic_appwidget_settings_sync_off_holo.png
  113. BIN res/drawable-mdpi/ic_appwidget_settings_sync_on.png
  114. BIN res/drawable-mdpi/ic_appwidget_settings_sync_on_holo.png
  115. BIN res/drawable-mdpi/ic_appwidget_settings_wifi_off.png
  116. BIN res/drawable-mdpi/ic_appwidget_settings_wifi_off_holo.png
  117. BIN res/drawable-mdpi/ic_appwidget_settings_wifi_on.png
  118. BIN res/drawable-mdpi/ic_appwidget_settings_wifi_on_holo.png
  119. BIN res/drawable-xhdpi/appwidget_bg.9.png
  120. BIN res/drawable-xhdpi/appwidget_bg_focused_holo.9.png
  121. BIN res/drawable-xhdpi/appwidget_bg_holo.9.png
  122. BIN res/drawable-xhdpi/appwidget_bg_pressed_holo.9.png
  123. BIN res/drawable-xhdpi/appwidget_inner_focus_c.9.png
  124. BIN res/drawable-xhdpi/appwidget_inner_focus_l.9.png
  125. BIN res/drawable-xhdpi/appwidget_inner_focus_r.9.png
  126. BIN res/drawable-xhdpi/appwidget_inner_focused_c_holo.9.png
  127. BIN res/drawable-xhdpi/appwidget_inner_focused_l_holo.9.png
  128. BIN res/drawable-xhdpi/appwidget_inner_focused_r_holo.9.png
  129. BIN res/drawable-xhdpi/appwidget_inner_press_c.9.png
  130. BIN res/drawable-xhdpi/appwidget_inner_press_l.9.png
  131. BIN res/drawable-xhdpi/appwidget_inner_press_r.9.png
  132. BIN res/drawable-xhdpi/appwidget_inner_pressed_c_holo.9.png
  133. BIN res/drawable-xhdpi/appwidget_inner_pressed_l_holo.9.png
  134. BIN res/drawable-xhdpi/appwidget_inner_pressed_r_holo.9.png
  135. BIN res/drawable-xhdpi/appwidget_settings_divider.9.png
  136. BIN res/drawable-xhdpi/appwidget_settings_divider_holo.9.png
  137. BIN res/drawable-xhdpi/appwidget_settings_ind_mid_c.9.png
  138. BIN res/drawable-xhdpi/appwidget_settings_ind_mid_c_holo.9.png
  139. BIN res/drawable-xhdpi/appwidget_settings_ind_mid_l.9.png
  140. BIN res/drawable-xhdpi/appwidget_settings_ind_mid_l_holo.9.png
  141. BIN res/drawable-xhdpi/appwidget_settings_ind_mid_r.9.png
  142. BIN res/drawable-xhdpi/appwidget_settings_ind_mid_r_holo.9.png
  143. BIN res/drawable-xhdpi/appwidget_settings_ind_off_c.9.png
  144. BIN res/drawable-xhdpi/appwidget_settings_ind_off_c_holo.9.png
  145. BIN res/drawable-xhdpi/appwidget_settings_ind_off_l.9.png
  146. BIN res/drawable-xhdpi/appwidget_settings_ind_off_l_holo.9.png
  147. BIN res/drawable-xhdpi/appwidget_settings_ind_off_r.9.png
  148. BIN res/drawable-xhdpi/appwidget_settings_ind_off_r_holo.9.png
  149. BIN res/drawable-xhdpi/appwidget_settings_ind_on_c.9.png
  150. BIN res/drawable-xhdpi/appwidget_settings_ind_on_c_holo.9.png
  151. BIN res/drawable-xhdpi/appwidget_settings_ind_on_l.9.png
  152. BIN res/drawable-xhdpi/appwidget_settings_ind_on_l_holo.9.png
  153. BIN res/drawable-xhdpi/appwidget_settings_ind_on_r.9.png
  154. BIN res/drawable-xhdpi/appwidget_settings_ind_on_r_holo.9.png
  155. BIN res/drawable-xhdpi/ic_appwidget_settings_bluetooth_off.png
  156. BIN res/drawable-xhdpi/ic_appwidget_settings_bluetooth_off_holo.png
  157. BIN res/drawable-xhdpi/ic_appwidget_settings_bluetooth_on.png
  158. BIN res/drawable-xhdpi/ic_appwidget_settings_bluetooth_on_holo.png
  159. BIN res/drawable-xhdpi/ic_appwidget_settings_brightness_auto.png
  160. BIN res/drawable-xhdpi/ic_appwidget_settings_brightness_auto_holo.png
  161. BIN res/drawable-xhdpi/ic_appwidget_settings_brightness_full_holo.png
  162. BIN res/drawable-xhdpi/ic_appwidget_settings_brightness_half_holo.png
  163. BIN res/drawable-xhdpi/ic_appwidget_settings_brightness_off.png
  164. BIN res/drawable-xhdpi/ic_appwidget_settings_brightness_off_holo.png
  165. BIN res/drawable-xhdpi/ic_appwidget_settings_brightness_on.png
  166. BIN res/drawable-xhdpi/ic_appwidget_settings_gps_off.png
  167. BIN res/drawable-xhdpi/ic_appwidget_settings_gps_off_holo.png
  168. BIN res/drawable-xhdpi/ic_appwidget_settings_gps_on.png
  169. BIN res/drawable-xhdpi/ic_appwidget_settings_gps_on_holo.png
  170. BIN res/drawable-xhdpi/ic_appwidget_settings_sync_off.png
  171. BIN res/drawable-xhdpi/ic_appwidget_settings_sync_off_holo.png
  172. BIN res/drawable-xhdpi/ic_appwidget_settings_sync_on.png
  173. BIN res/drawable-xhdpi/ic_appwidget_settings_sync_on_holo.png
  174. BIN res/drawable-xhdpi/ic_appwidget_settings_wifi_off.png
  175. BIN res/drawable-xhdpi/ic_appwidget_settings_wifi_off_holo.png
  176. BIN res/drawable-xhdpi/ic_appwidget_settings_wifi_on.png
  177. BIN res/drawable-xhdpi/ic_appwidget_settings_wifi_on_holo.png
  178. +2 −2 res/drawable/appwidget_button_center.xml
  179. +2 −2 res/drawable/appwidget_button_left.xml
  180. +2 −2 res/drawable/appwidget_button_right.xml
  181. +5 −5 res/layout/widget.xml
  182. +23 −23 src/com/android/settings/widget/SettingsAppWidgetProvider.java
Deleted file not rendered
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Deleted file not rendered
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Deleted file not rendered
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Deleted file not rendered
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Deleted file not rendered
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Deleted file not rendered
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
@@ -17,11 +17,11 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
- android:drawable="@drawable/appwidget_inner_press_c" />
+ android:drawable="@drawable/appwidget_inner_pressed_c_holo" />
<item android:state_focused="true" android:state_enabled="true"
android:state_window_focused="true"
- android:drawable="@drawable/appwidget_inner_focus_c" />
+ android:drawable="@drawable/appwidget_inner_focused_c_holo" />
<item
android:drawable="@android:color/transparent" />
@@ -17,11 +17,11 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
- android:drawable="@drawable/appwidget_inner_press_l" />
+ android:drawable="@drawable/appwidget_inner_pressed_l_holo" />
<item android:state_focused="true" android:state_enabled="true"
android:state_window_focused="true"
- android:drawable="@drawable/appwidget_inner_focus_l" />
+ android:drawable="@drawable/appwidget_inner_focused_l_holo" />
<item
android:drawable="@android:color/transparent" />
@@ -17,11 +17,11 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
- android:drawable="@drawable/appwidget_inner_press_r" />
+ android:drawable="@drawable/appwidget_inner_pressed_r_holo" />
<item android:state_focused="true" android:state_enabled="true"
android:state_window_focused="true"
- android:drawable="@drawable/appwidget_inner_focus_r" />
+ android:drawable="@drawable/appwidget_inner_focused_r_holo" />
<item
android:drawable="@android:color/transparent" />
View
@@ -19,7 +19,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
- android:background="@drawable/appwidget_bg" >
+ android:background="@drawable/appwidget_bg_holo" >
<LinearLayout
android:id="@+id/btn_wifi"
@@ -50,7 +50,7 @@
<ImageView
android:layout_width="1dip"
android:layout_height="match_parent"
- android:background="@drawable/appwidget_settings_divider"
+ android:background="@drawable/appwidget_settings_divider_holo"
/>
<LinearLayout
@@ -83,7 +83,7 @@
<ImageView
android:layout_width="1dip"
android:layout_height="match_parent"
- android:background="@drawable/appwidget_settings_divider"
+ android:background="@drawable/appwidget_settings_divider_holo"
/>
<LinearLayout
@@ -115,7 +115,7 @@
<ImageView
android:layout_width="1dip"
android:layout_height="match_parent"
- android:background="@drawable/appwidget_settings_divider"
+ android:background="@drawable/appwidget_settings_divider_holo"
/>
<LinearLayout
@@ -147,7 +147,7 @@
<ImageView
android:layout_width="1dip"
android:layout_height="match_parent"
- android:background="@drawable/appwidget_settings_divider"
+ android:background="@drawable/appwidget_settings_divider_holo"
/>
<LinearLayout
@@ -77,21 +77,21 @@
private static final int POS_RIGHT = 2;
private static final int[] IND_DRAWABLE_OFF = {
- R.drawable.appwidget_settings_ind_off_l,
- R.drawable.appwidget_settings_ind_off_c,
- R.drawable.appwidget_settings_ind_off_r
+ R.drawable.appwidget_settings_ind_off_l_holo,
+ R.drawable.appwidget_settings_ind_off_c_holo,
+ R.drawable.appwidget_settings_ind_off_r_holo
};
private static final int[] IND_DRAWABLE_MID = {
- R.drawable.appwidget_settings_ind_mid_l,
- R.drawable.appwidget_settings_ind_mid_c,
- R.drawable.appwidget_settings_ind_mid_r
+ R.drawable.appwidget_settings_ind_mid_l_holo,
+ R.drawable.appwidget_settings_ind_mid_c_holo,
+ R.drawable.appwidget_settings_ind_mid_r_holo
};
private static final int[] IND_DRAWABLE_ON = {
- R.drawable.appwidget_settings_ind_on_l,
- R.drawable.appwidget_settings_ind_on_c,
- R.drawable.appwidget_settings_ind_on_r
+ R.drawable.appwidget_settings_ind_on_l_holo,
+ R.drawable.appwidget_settings_ind_on_c_holo,
+ R.drawable.appwidget_settings_ind_on_r_holo
};
/**
@@ -326,8 +326,8 @@ public final int getTriState(Context context) {
public int getButtonId() { return R.id.img_wifi; }
public int getIndicatorId() { return R.id.ind_wifi; }
public int getButtonImageId(boolean on) {
- return on ? R.drawable.ic_appwidget_settings_wifi_on
- : R.drawable.ic_appwidget_settings_wifi_off;
+ return on ? R.drawable.ic_appwidget_settings_wifi_on_holo
+ : R.drawable.ic_appwidget_settings_wifi_off_holo;
}
@Override
@@ -409,8 +409,8 @@ private static int wifiStateToFiveState(int wifiState) {
public int getButtonId() { return R.id.img_bluetooth; }
public int getIndicatorId() { return R.id.ind_bluetooth; }
public int getButtonImageId(boolean on) {
- return on ? R.drawable.ic_appwidget_settings_bluetooth_on
- : R.drawable.ic_appwidget_settings_bluetooth_off;
+ return on ? R.drawable.ic_appwidget_settings_bluetooth_on_holo
+ : R.drawable.ic_appwidget_settings_bluetooth_off_holo;
}
@Override
@@ -480,8 +480,8 @@ private static int bluetoothStateToFiveState(int bluetoothState) {
public int getButtonId() { return R.id.img_gps; }
public int getIndicatorId() { return R.id.ind_gps; }
public int getButtonImageId(boolean on) {
- return on ? R.drawable.ic_appwidget_settings_gps_on
- : R.drawable.ic_appwidget_settings_gps_off;
+ return on ? R.drawable.ic_appwidget_settings_gps_on_holo
+ : R.drawable.ic_appwidget_settings_gps_off_holo;
}
@Override
@@ -530,8 +530,8 @@ protected void onPostExecute(Boolean result) {
public int getButtonId() { return R.id.img_sync; }
public int getIndicatorId() { return R.id.ind_sync; }
public int getButtonImageId(boolean on) {
- return on ? R.drawable.ic_appwidget_settings_sync_on
- : R.drawable.ic_appwidget_settings_sync_off;
+ return on ? R.drawable.ic_appwidget_settings_sync_on_holo
+ : R.drawable.ic_appwidget_settings_sync_off_holo;
}
@Override
@@ -669,19 +669,19 @@ private static void updateButtons(RemoteViews views, Context context) {
if (getBrightnessMode(context)) {
views.setImageViewResource(R.id.img_brightness,
- R.drawable.ic_appwidget_settings_brightness_auto);
+ R.drawable.ic_appwidget_settings_brightness_auto_holo);
views.setImageViewResource(R.id.ind_brightness,
- R.drawable.appwidget_settings_ind_on_r);
+ R.drawable.appwidget_settings_ind_on_r_holo);
} else if (getBrightness(context)) {
views.setImageViewResource(R.id.img_brightness,
- R.drawable.ic_appwidget_settings_brightness_on);
+ R.drawable.ic_appwidget_settings_brightness_full_holo);
views.setImageViewResource(R.id.ind_brightness,
- R.drawable.appwidget_settings_ind_on_r);
+ R.drawable.appwidget_settings_ind_on_r_holo);
} else {
views.setImageViewResource(R.id.img_brightness,
- R.drawable.ic_appwidget_settings_brightness_off);
+ R.drawable.ic_appwidget_settings_brightness_off_holo);
views.setImageViewResource(R.id.ind_brightness,
- R.drawable.appwidget_settings_ind_off_r);
+ R.drawable.appwidget_settings_ind_off_r_holo);
}
}

0 comments on commit a1252cc

Please sign in to comment.