Never close Keyguard automatically.

Also make the bouncer less translucent, so it looks better when
a user double-clicks on a notification (because it is now shown
behind, so we need more background protection).

Bug: 14059777
Change-Id: I2538b0e04ddc25c25a03c65c8a5bd7855720bbf2
This commit is contained in:
Jorim Jaggi
2014-05-02 21:19:17 +02:00
parent 9cbadd3c08
commit c1cf1aec53
3 changed files with 7 additions and 2 deletions

View File

@@ -19,7 +19,7 @@
android:layout_height="match_parent">
<View android:id="@+id/bouncer_background"
android:background="#aa000000"
android:background="#cc000000"
android:clickable="true"
android:layout_width="match_parent"
android:layout_height="match_parent"/>

View File

@@ -1668,6 +1668,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
}
public void animateCollapsePanels(int flags) {
if (mState == StatusBarState.KEYGUARD || mState == StatusBarState.SHADE_LOCKED) {
return;
}
if (SPEW) {
Log.d(TAG, "animateCollapse():"
+ " mExpandedVisible=" + mExpandedVisible

View File

@@ -108,7 +108,9 @@ public class StatusBarWindowView extends FrameLayout {
boolean intercept = false;
if (mNotificationPanel.isFullyExpanded()
&& mStackScrollLayout.getVisibility() == View.VISIBLE
&& mService.getBarState() != StatusBarState.KEYGUARD) {
&& (mService.getBarState() == StatusBarState.SHADE
|| (mService.getBarState() == StatusBarState.SHADE_LOCKED
&& !mService.isBouncerShowing()))) {
intercept = mExpandHelper.onInterceptTouchEvent(ev);
} else if (mNotificationPanel.isFullyExpanded()
&& mStackScrollLayout.getVisibility() == View.VISIBLE