Merge "Fix settings icon row consuming the click when tapping the notification" into nyc-dev am: 6e64423c19
am: b67005b6a4
* commit 'b67005b6a4a459806dd9321b90e7aa7e3c86d856':
Fix settings icon row consuming the click when tapping the notification
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
xmlns:systemui="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible"
|
||||
>
|
||||
|
||||
<com.android.systemui.statusbar.AlphaOptimizedImageView
|
||||
@@ -31,7 +32,6 @@
|
||||
android:paddingBottom="@dimen/notification_gear_padding"
|
||||
android:src="@drawable/ic_settings"
|
||||
android:tint="@color/notification_gear_color"
|
||||
android:visibility="invisible"
|
||||
android:alpha="0"
|
||||
android:background="?android:attr/selectableItemBackgroundBorderless"
|
||||
/>
|
||||
|
||||
@@ -97,12 +97,12 @@ public class NotificationSettingsIconRow extends FrameLayout implements View.OnC
|
||||
private void setGearAlpha(float alpha) {
|
||||
if (alpha == 0) {
|
||||
mSettingsFadedIn = false; // Can fade in again once it's gone.
|
||||
mGearIcon.setVisibility(View.INVISIBLE);
|
||||
setVisibility(View.INVISIBLE);
|
||||
} else {
|
||||
if (alpha == 1) {
|
||||
mSettingsFadedIn = true;
|
||||
}
|
||||
mGearIcon.setVisibility(View.VISIBLE);
|
||||
setVisibility(View.VISIBLE);
|
||||
}
|
||||
mGearIcon.setAlpha(alpha);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user