Remove TabletStatusBar from systemui package.
Change-Id: Ie8b556dbba8751617582f8c717ee83e480938b27
diff --git a/packages/SystemUI/src/com/android/systemui/SystemUIService.java b/packages/SystemUI/src/com/android/systemui/SystemUIService.java
index 447161d..043b64c 100644
--- a/packages/SystemUI/src/com/android/systemui/SystemUIService.java
+++ b/packages/SystemUI/src/com/android/systemui/SystemUIService.java
@@ -20,10 +20,10 @@
import android.content.Intent;
import android.content.res.Configuration;
import android.os.IBinder;
-import android.os.RemoteException;
import android.util.Log;
-import android.view.IWindowManager;
-import android.view.WindowManagerGlobal;
+
+import java.io.FileDescriptor;
+import java.io.PrintWriter;
import java.io.FileDescriptor;
import java.io.PrintWriter;
@@ -35,7 +35,7 @@
* The class names of the stuff to start.
*/
final Object[] SERVICES = new Object[] {
- 0, // system bar or status bar, filled in below.
+ R.string.config_statusBarComponent,
com.android.systemui.power.PowerUI.class,
com.android.systemui.media.RingtonePlayer.class,
com.android.systemui.settings.SettingsUI.class,
@@ -63,16 +63,6 @@
@Override
public void onCreate() {
- // Pick status bar or system bar.
- IWindowManager wm = WindowManagerGlobal.getWindowManagerService();
- try {
- SERVICES[0] = wm.hasSystemNavBar()
- ? R.string.config_systemBarComponent
- : R.string.config_statusBarComponent;
- } catch (RemoteException e) {
- Log.w(TAG, "Failing checking whether status bar can hide", e);
- }
-
final int N = SERVICES.length;
mServices = new SystemUI[N];
for (int i=0; i<N; i++) {