Permalink
Browse files

Alternate Signal Layout (1/2)

Provides for an alternate (GB style) signal cluster
that separates the mobile type/traffic from the signal meter.
This will give themers more flexibility in statusbar design & layout.

Patch 2: Remove Log Spam
Patch 3: Graphics cleanup
Patch 4: Cleanup
Patch 5: Additional cleanup
Patch 6: Small xml adjustment
Patch 7: Add a bool value to allow theme to set/use Alt_cluster.  Will not over-ride user setting.

Change-Id: I9800f719eb5333c94cc85f96eda37ae9674cdd72
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
  • Loading branch information...
1 parent e664997 commit 761a2a36a42e557c00838ffa84b4ef524183867e @Zaphod-Beeblebrox Zaphod-Beeblebrox committed Sep 7, 2012
Showing with 156 additions and 6 deletions.
  1. +8 −0 core/java/android/provider/Settings.java
  2. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_connected_1x.png
  3. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_connected_3g.png
  4. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_connected_4g.png
  5. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_connected_e.png
  6. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_connected_g.png
  7. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_connected_h.png
  8. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_connected_hp.png
  9. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_connected_roam.png
  10. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_fully_connected_1x.png
  11. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_fully_connected_3g.png
  12. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_fully_connected_4g.png
  13. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_fully_connected_e.png
  14. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_fully_connected_g.png
  15. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_fully_connected_h.png
  16. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_fully_connected_hp.png
  17. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_signal_in.png
  18. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_signal_inout.png
  19. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_signal_out.png
  20. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_connected_1x.png
  21. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_connected_3g.png
  22. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_connected_4g.png
  23. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_connected_e.png
  24. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_connected_g.png
  25. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_connected_h.png
  26. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_connected_hp.png
  27. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_connected_roam.png
  28. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_fully_connected_1x.png
  29. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_fully_connected_3g.png
  30. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_fully_connected_4g.png
  31. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_fully_connected_e.png
  32. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_fully_connected_g.png
  33. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_fully_connected_h.png
  34. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_fully_connected_hp.png
  35. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_signal_in.png
  36. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_signal_inout.png
  37. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_signal_out.png
  38. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_data_connected_1x.png
  39. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_data_connected_3g.png
  40. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_data_connected_4g.png
  41. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_data_connected_e.png
  42. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_data_connected_g.png
  43. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_data_connected_h.png
  44. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_data_connected_hp.png
  45. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_data_connected_roam.png
  46. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_data_fully_connected_1x.png
  47. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_data_fully_connected_3g.png
  48. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_data_fully_connected_4g.png
  49. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_data_fully_connected_e.png
  50. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_data_fully_connected_g.png
  51. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_data_fully_connected_h.png
  52. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_data_fully_connected_hp.png
  53. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_signal_in.png
  54. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_signal_inout.png
  55. BIN packages/SystemUI/res/drawable-sw720dp-hdpi/stat_sys_signal_out.png
  56. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_data_connected_1x.png
  57. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_data_connected_3g.png
  58. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_data_connected_4g.png
  59. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_data_connected_e.png
  60. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_data_connected_g.png
  61. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_data_connected_h.png
  62. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_data_connected_hp.png
  63. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_data_connected_roam.png
  64. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_data_fully_connected_1x.png
  65. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_data_fully_connected_3g.png
  66. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_data_fully_connected_4g.png
  67. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_data_fully_connected_e.png
  68. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_data_fully_connected_g.png
  69. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_data_fully_connected_h.png
  70. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_data_fully_connected_hp.png
  71. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_signal_in.png
  72. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_signal_inout.png
  73. BIN packages/SystemUI/res/drawable-sw720dp-mdpi/stat_sys_signal_out.png
  74. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_data_connected_1x.png
  75. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_data_connected_3g.png
  76. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_data_connected_4g.png
  77. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_data_connected_e.png
  78. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_data_connected_g.png
  79. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_data_connected_h.png
  80. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_data_connected_hp.png
  81. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_data_connected_roam.png
  82. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_data_fully_connected_1x.png
  83. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_data_fully_connected_3g.png
  84. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_data_fully_connected_4g.png
  85. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_data_fully_connected_e.png
  86. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_data_fully_connected_g.png
  87. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_data_fully_connected_h.png
  88. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_data_fully_connected_hp.png
  89. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_signal_in.png
  90. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_signal_inout.png
  91. BIN packages/SystemUI/res/drawable-sw720dp-xhdpi/stat_sys_signal_out.png
  92. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_connected_1x.png
  93. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_connected_3g.png
  94. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_connected_4g.png
  95. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_connected_e.png
  96. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_connected_g.png
  97. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_connected_h.png
  98. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_connected_hp.png
  99. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_connected_roam.png
  100. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_fully_connected_1x.png
  101. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_fully_connected_3g.png
  102. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_fully_connected_4g.png
  103. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_fully_connected_e.png
  104. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_fully_connected_g.png
  105. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_fully_connected_h.png
  106. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_fully_connected_hp.png
  107. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_signal_in.png
  108. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_signal_inout.png
  109. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_signal_out.png
  110. +1 −0 packages/SystemUI/res/layout/signal_cluster_view.xml
  111. +106 −0 packages/SystemUI/res/layout/signal_cluster_view_alt.xml
  112. +8 −1 packages/SystemUI/res/layout/status_bar.xml
  113. +7 −0 packages/SystemUI/res/layout/system_bar_notification_area.xml
  114. +5 −0 packages/SystemUI/res/values/bools.xml
  115. +16 −4 packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java
  116. +5 −1 packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -3180,6 +3180,14 @@ public static void setShowGTalkServiceStatus(ContentResolver cr, boolean flag) {
* @hide
*/
public static final String STATUSBAR_WIFI_SIGNAL_TEXT_COLOR = "statusbar_wifi_signal_text_color";
+
+ /**
+ * use Alt Statusbar Signal Layout
+ * boolean
+ *
+ * @hide
+ */
+ public static final String STATUSBAR_SIGNAL_CLUSTER_ALT = "statusbar_signal_cluster_alt";
}
/**
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.
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.
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.
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.
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.
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.
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.
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.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -101,6 +101,7 @@
android:id="@+id/mobile_type"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
+ android:layout_gravity="left|top"
/>
<ImageView
android:id="@+id/mobile_inout"
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/* apps/common/assets/default/default/skins/StatusBar.xml
+**
+** Copyright 2011, The Android Open Source Project
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+-->
+
+<com.android.systemui.statusbar.SignalClusterView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:orientation="horizontal"
+ >
+ <FrameLayout
+ android:id="@+id/wifi_combo"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginRight="-6dp"
+ >
+ <ImageView
+ android:id="@+id/wifi_signal"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_centerVertical="true"
+ android:scaleType="center"
+ />
+ <ImageView
+ android:id="@+id/wifi_inout"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_gravity="center|bottom"
+ />
+ <com.android.systemui.statusbar.policy.WifiText
+ android:id="@+id/wifi_signal_text"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:paddingLeft="8dp" />
+ </FrameLayout>
+ <View
+ android:layout_height="6dp"
+ android:layout_width="6dp"
+ android:visibility="gone"
+ android:id="@+id/spacer"
+ />
+ <FrameLayout
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ >
+ <View
+ android:layout_height="6dp"
+ android:layout_width="6dp"
+ android:visibility="invisible"
+ />
+ <LinearLayout
+ android:id="@+id/mobile_combo"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ >
+ <FrameLayout
+ android:layout_height="match_parent"
+ android:layout_width="wrap_content" >
+ <ImageView
+ android:id="@+id/mobile_type"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_gravity="right|top"
+ />
+ <ImageView
+ android:id="@+id/mobile_inout"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_gravity="right|bottom"
+ />
+ <com.android.systemui.statusbar.policy.SignalText
+ android:id="@+id/signal_text"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent" />
+ </FrameLayout>
+ <ImageView
+ android:id="@+id/mobile_signal"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ />
+ </LinearLayout>
+ </FrameLayout>
+ <ImageView
+ android:id="@+id/airplane"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ />
+</com.android.systemui.statusbar.SignalClusterView>
@@ -51,7 +51,7 @@
>
<LinearLayout
- android:id="@+id/notification_icon_area"
+ android:id="@+id/notification_icon_area"
android:layout_width="0dip"
android:layout_height="match_parent"
android:layout_weight="1"
@@ -90,6 +90,13 @@
android:id="@+id/signal_cluster"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:visibility="gone"
+ />
+ <include layout="@layout/signal_cluster_view_alt"
+ android:id="@+id/signal_cluster_alt"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:visibility="gone"
/>
<include layout="@layout/battery_cluster_view"
android:id="@+id/battery_cluster"
@@ -114,6 +114,13 @@
android:id="@+id/signal_cluster"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android.visibility="gone"
+ />
+ <include layout="@layout/signal_cluster_view_alt"
+ android:id="@+id/signal_cluster_alt"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android.visibility="gone"
/>
<ImageView
android:id="@+id/bluetooth"
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <!-- Can be used to default to Alt-Signal_layout -->
+ <bool name="statusbar_alt_signal_layout">false</bool>
+</resources>
@@ -55,6 +55,7 @@
private boolean showingSignalText = false;
private boolean showingWiFiText = false;
+ private boolean showingAltCluster = false;
ViewGroup mWifiGroup, mMobileGroup;
ImageView mWifi, mMobile, mWifiActivity, mMobileActivity, mMobileType, mAirplane;
@@ -228,6 +229,11 @@ private void apply() {
mMobileType.setVisibility(
!mWifiVisible ? View.VISIBLE : View.GONE);
+ if (showingAltCluster) {
+ this.setVisibility((this.getId() == R.id.signal_cluster) ? View.GONE : View.VISIBLE);
+ } else {
+ this.setVisibility((this.getId() == R.id.signal_cluster) ? View.VISIBLE : View.GONE);
+ }
}
class SettingsObserver extends ContentObserver {
@@ -243,6 +249,9 @@ void observe() {
resolver.registerContentObserver(
Settings.System.getUriFor(Settings.System.STATUSBAR_WIFI_SIGNAL_TEXT), false,
this);
+ resolver.registerContentObserver(
+ Settings.System.getUriFor(Settings.System.STATUSBAR_SIGNAL_CLUSTER_ALT), false,
+ this);
updateSettings();
}
@@ -255,10 +264,13 @@ public void onChange(boolean selfChange) {
protected void updateSettings() {
ContentResolver resolver = mContext.getContentResolver();
- showingSignalText = Settings.System.getInt(resolver,
- Settings.System.STATUSBAR_SIGNAL_TEXT, 0) != 0;
- showingWiFiText = Settings.System.getInt(resolver,
- Settings.System.STATUSBAR_WIFI_SIGNAL_TEXT, 0) != 0;
+ boolean clustdefault = getResources().getBoolean(R.bool.statusbar_alt_signal_layout);
+ showingSignalText = Settings.System.getBoolean(resolver,
+ Settings.System.STATUSBAR_SIGNAL_TEXT, false);
+ showingWiFiText = Settings.System.getBoolean(resolver,
+ Settings.System.STATUSBAR_WIFI_SIGNAL_TEXT, false);
+ showingAltCluster = Settings.System.getBoolean(resolver,
+ Settings.System.STATUSBAR_SIGNAL_CLUSTER_ALT, clustdefault);
apply();
}
}
@@ -495,9 +495,13 @@ public void onSizeChanged(View view, int w, int h, int oldw, int oldh) {
//mBatteryController = new BatteryController(mContext);
//mBatteryController.addIconView((ImageView)mStatusBarView.findViewById(R.id.battery));
mNetworkController = new NetworkController(mContext);
- final SignalClusterView signalCluster =
+ SignalClusterView signalCluster =
(SignalClusterView)mStatusBarView.findViewById(R.id.signal_cluster);
+ mNetworkController.addSignalCluster(signalCluster);
+ signalCluster.setNetworkController(mNetworkController);
+ signalCluster = (SignalClusterView)mStatusBarView.findViewById(R.id.signal_cluster_alt);
+
mNetworkController.addSignalCluster(signalCluster);
signalCluster.setNetworkController(mNetworkController);

0 comments on commit 761a2a3

Please sign in to comment.