|
/*
*Android2.1 Framework Remove StatusBar Clock and Battery
*Industrial Board dont need StatusBar Clock and Time,So We disable them in framework by Safe way and reason of maintainablity
*Android2.1 use setIconVisibility to achieve StatusBar Icons to display or not,and use Op to manage Icons according to Android ACTION events.
*in StatusBarService.java,makeStatusBarView exceute setAreThereNotifications for inital view visibility.
*/
Code:android_ecliar/frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java
Code:android_ecliar/frameworks/base/services/java/com/android/server/status/StatusBarService.java
414,415d413
< /*Jiujin.hong 2011/0922*/
< service.setIconVisibility(mClockIcon, false);/*Jiujin.hong*/
422,423d419
< /*Jiujin.hong 2011/0922*/
< service.setIconVisibility(mBatteryIcon, false);/*Jiujin.hong*/
--- StatusBarPolicy.java 2011-09-22 09:51:27.616665586 +0800
+++ StatusBarPolicy.java.bk 2011-09-21 16:58:21.816810220 +0800
@@ -411,16 +411,12 @@
mCalendar = Calendar.getInstance(TimeZone.getDefault());
mClockData = IconData.makeText("clock", "");
mClockIcon = service.addIcon(mClockData, null);
- /*Jiujin.hong 2011/0922*/
- service.setIconVisibility(mClockIcon, false);/*Jiujin.hong*/
updateClock();
// battery
mBatteryData = IconData.makeIcon("battery",
null, com.android.internal.R.drawable.stat_sys_battery_unknown, 0, 0);
mBatteryIcon = service.addIcon(mBatteryData, null);
- /*Jiujin.hong 2011/0922*/
- service.setIconVisibility(mBatteryIcon, false);/*Jiujin.hong*/
// phone_signal
mPhone = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
Tommy |
|