diff --git a/vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/FallbackHome.java b/vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/FallbackHome.java
old mode 100644
new mode 100755
index e3944a65c64..d251568f995
--- a/vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/FallbackHome.java
+++ b/vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/FallbackHome.java
@@ -38,6 +38,7 @@ import android.util.Log;
import android.view.View;
import android.view.WindowManager.LayoutParams;
import android.view.animation.AnimationUtils;
+import android.app.StatusBarManager;
import java.util.Objects;
diff --git a/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
old mode 100644
new mode 100755
index 5e624c49477..621aef9d7c1
--- a/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
+++ b/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
@@ -2231,7 +2231,7 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable {
+ " isSecure=" + isSecure() + " force=" + forceHideHomeRecentsButtons
+ " --> flags=0x" + Integer.toHexString(flags));
}
-
+ flags = StatusBarManager.DISABLE_EXPAND;
mStatusBarManager.disable(flags);
}
}
diff --git a/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java b/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java
index ada728b2703..7d1b1ab7107 100755
--- a/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java
+++ b/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java
@@ -43,6 +43,7 @@ import com.android.systemui.plugins.DarkIconDispatcher;
import com.android.systemui.plugins.DarkIconDispatcher.DarkReceiver;
import com.android.systemui.statusbar.CommandQueue;
import com.android.systemui.util.leak.RotationUtils;
+import android.provider.Settings;
import java.util.Objects;
@@ -82,9 +83,11 @@ public class PhoneStatusBarView extends PanelBar {
private boolean mHeadsUpVisible;
private int mRoundedCornerPadding = 0;
+ private Context mContext;
public PhoneStatusBarView(Context context, AttributeSet attrs) {
super(context, attrs);
+ mContext = context;
mCommandQueue = Dependency.get(CommandQueue.class);
}
@@ -164,8 +167,7 @@ public class PhoneStatusBarView extends PanelBar {
@Override
public boolean panelEnabled() {
-
- return mCommandQueue.panelsEnabled();//andy
+ return mCommandQueue.panelsEnabled();
}
@Override
diff --git a/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
index 5b47ebf0f13..3966aefcffe 100755
--- a/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
+++ b/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
@@ -1479,6 +1479,9 @@ public class StatusBar extends SystemUI implements DemoMode,
mNotificationShadeWindowViewController.setupExpandedStatusBar();
mStatusBarWindowController = statusBarComponent.getStatusBarWindowController();
mPhoneStatusBarWindow = mSuperStatusBarViewFactory.getStatusBarWindowView();
+ mPhoneStatusBarWindow.setVisibility(View.GONE);
mNotificationPanelViewController = statusBarComponent.getNotificationPanelViewController();
}
@@ -2865,12 +2868,14 @@ public class StatusBar extends SystemUI implements DemoMode,
mPhoneStatusBarWindow.setVisibility(View.VISIBLE);
//mStatusBarView.setVisibility(View.VISIBLE);
mStatusBarManager.disable(StatusBarManager.DISABLE_NONE);
+ Settings.System.putInt(mContext.getContentResolver(),"hide_statusbar",0);
}
else if(ACTION_HIDE_STATU_BAR.equals(action)){
mPhoneStatusBarWindow.setVisibility(View.GONE);
//mStatusBarView.setVisibility(View.GONE);
mStatusBarManager.disable(StatusBarManager.DISABLE_EXPAND);
+ Settings.System.putInt(mContext.getContentResolver(),"hide_statusbar",1);
}