Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 157026f8 authored by Chris Wren's avatar Chris Wren
Browse files

heads up notifications, v0.1

1. re-name intruder alerts to heads up notifications
2. use interrupt for the verb form, instead of intrude
3. new policy: no full screen, high priority, screen on, not locked or dreaming
4. controlled by global setting, with an observer
5. only content view for now, expandable is a todo

to turn it on:
  adb  shell settings put global heads_up_enabled 1
calendar notifications (not pop-up) work well.

Change-Id: I253418c217d0a5cf81dc2fa001f4bad90fafcce5
parent 38b23225
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -16,5 +16,6 @@

<selector xmlns:android="http://schemas.android.com/apk/res/android"
          android:exitFadeDuration="@android:integer/config_mediumAnimTime">
    <item android:state_pressed="true"  android:drawable="@drawable/intruder_bg_pressed" />
    <item android:state_pressed="true"
          android:drawable="@drawable/heads_up_notification_bg_pressed" />
</selector>
+3 −9
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
-->

<!--    android:background="@drawable/status_bar_closed_default_background" -->
<com.android.systemui.statusbar.policy.IntruderAlertView
<com.android.systemui.statusbar.policy.HeadsUpNotificationView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="wrap_content"
    android:layout_width="match_parent"
@@ -29,12 +29,6 @@
        android:layout_height="wrap_content"
        android:layout_width="match_parent"
        android:id="@+id/contentHolder"
        android:background="@drawable/intruder_window_bg"
        android:background="@drawable/heads_up_window_bg"
        />
<!--    <ImageView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:src="@drawable/title_bar_shadow"
        android:scaleType="fitXY"
        /> -->
</com.android.systemui.statusbar.policy.IntruderAlertView>
</com.android.systemui.statusbar.policy.HeadsUpNotificationView>
Loading