Swipeable classic notification (#244)

* Made notification swipeable when not playing not swipeable when playing. Removed "X" close button

* Fixed music stop on tap and on app close

* Refactor notification classes
This commit is contained in:
Lincoln 2017-08-14 23:04:59 -04:00 committed by Eugene Cheung
commit 41b81ce14c
4 changed files with 54 additions and 104 deletions

View file

@ -36,18 +36,6 @@
android:scaleType="centerCrop"
tools:ignore="ContentDescription" />
<ImageButton
android:id="@+id/action_quit"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_margin="2dp"
android:background="@drawable/notification_selector"
android:padding="6dp"
android:scaleType="fitCenter"
tools:ignore="ContentDescription" />
<LinearLayout
android:id="@+id/media_titles"
android:layout_width="match_parent"
@ -57,9 +45,7 @@
android:layout_marginStart="12dp"
android:layout_marginTop="8dp"
android:layout_toEndOf="@id/image"
android:layout_toLeftOf="@id/action_quit"
android:layout_toRightOf="@id/image"
android:layout_toStartOf="@id/action_quit"
android:minHeight="@dimen/notification_large_icon_height"
android:orientation="vertical">