diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java index 1efab5790..45cfb4177 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java @@ -483,9 +483,12 @@ public class VideoDetailFragment extends BaseStateFragment implement if (!PreferenceManager.getDefaultSharedPreferences(activity).getBoolean(getString(R.string.show_hold_to_append_key), true)) return false; if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) { - appendControlsDetail.setVisibility(View.VISIBLE); - } else { - appendControlsDetail.setVisibility(View.GONE); + animateView(appendControlsDetail, true, 250, 0, new Runnable() { + @Override + public void run() { + animateView(appendControlsDetail, false, 1500, 1000); + } + }); } return false; } diff --git a/app/src/main/java/org/schabi/newpipe/player/playback/MediaSourceManager.java b/app/src/main/java/org/schabi/newpipe/player/playback/MediaSourceManager.java index 277d24ac8..8c9ff1440 100644 --- a/app/src/main/java/org/schabi/newpipe/player/playback/MediaSourceManager.java +++ b/app/src/main/java/org/schabi/newpipe/player/playback/MediaSourceManager.java @@ -178,7 +178,8 @@ public class MediaSourceManager { case REMOVE: final RemoveEvent removeEvent = (RemoveEvent) event; remove(removeEvent.getRemoveIndex()); - sync(); + // Sync only when the currently playing is removed + if (removeEvent.getQueueIndex() == removeEvent.getRemoveIndex()) sync(); break; case MOVE: final MoveEvent moveEvent = (MoveEvent) event; diff --git a/app/src/main/java/org/schabi/newpipe/playlist/PlayQueueAdapter.java b/app/src/main/java/org/schabi/newpipe/playlist/PlayQueueAdapter.java index 283606074..e16693ec6 100644 --- a/app/src/main/java/org/schabi/newpipe/playlist/PlayQueueAdapter.java +++ b/app/src/main/java/org/schabi/newpipe/playlist/PlayQueueAdapter.java @@ -188,10 +188,15 @@ public class PlayQueueAdapter extends RecyclerView.Adapter - - - - diff --git a/app/src/main/res/color/light_selector.xml b/app/src/main/res/color/light_selector.xml deleted file mode 100644 index 8451b387f..000000000 --- a/app/src/main/res/color/light_selector.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable-hdpi/ic_fiber_manual_record_black_24dp.png b/app/src/main/res/drawable-hdpi/ic_fiber_manual_record_black_24dp.png new file mode 100644 index 000000000..459eec3fe Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_fiber_manual_record_black_24dp.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_fiber_manual_record_white_24dp.png b/app/src/main/res/drawable-hdpi/ic_fiber_manual_record_white_24dp.png new file mode 100644 index 000000000..2c476010b Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_fiber_manual_record_white_24dp.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_fiber_manual_record_black_24dp.png b/app/src/main/res/drawable-mdpi/ic_fiber_manual_record_black_24dp.png new file mode 100644 index 000000000..cfc8b4e60 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_fiber_manual_record_black_24dp.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_fiber_manual_record_white_24dp.png b/app/src/main/res/drawable-mdpi/ic_fiber_manual_record_white_24dp.png new file mode 100644 index 000000000..f6f53a154 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_fiber_manual_record_white_24dp.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_fiber_manual_record_black_24dp.png b/app/src/main/res/drawable-xhdpi/ic_fiber_manual_record_black_24dp.png new file mode 100644 index 000000000..3eb79e4c1 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_fiber_manual_record_black_24dp.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_fiber_manual_record_white_24dp.png b/app/src/main/res/drawable-xhdpi/ic_fiber_manual_record_white_24dp.png new file mode 100644 index 000000000..0fa16b016 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_fiber_manual_record_white_24dp.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_fiber_manual_record_black_24dp.png b/app/src/main/res/drawable-xxhdpi/ic_fiber_manual_record_black_24dp.png new file mode 100644 index 000000000..b53beb106 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_fiber_manual_record_black_24dp.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_fiber_manual_record_white_24dp.png b/app/src/main/res/drawable-xxhdpi/ic_fiber_manual_record_white_24dp.png new file mode 100644 index 000000000..422487473 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_fiber_manual_record_white_24dp.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_fiber_manual_record_black_24dp.png b/app/src/main/res/drawable-xxxhdpi/ic_fiber_manual_record_black_24dp.png new file mode 100644 index 000000000..eff1e3594 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_fiber_manual_record_black_24dp.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_fiber_manual_record_white_24dp.png b/app/src/main/res/drawable-xxxhdpi/ic_fiber_manual_record_white_24dp.png new file mode 100644 index 000000000..591b54a57 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_fiber_manual_record_white_24dp.png differ diff --git a/app/src/main/res/drawable/dark_selector.xml b/app/src/main/res/drawable/dark_selector.xml new file mode 100644 index 000000000..eb658e16d --- /dev/null +++ b/app/src/main/res/drawable/dark_selector.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/drawable/light_selector.xml b/app/src/main/res/drawable/light_selector.xml new file mode 100644 index 000000000..63f2ccaf3 --- /dev/null +++ b/app/src/main/res/drawable/light_selector.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_main_player.xml b/app/src/main/res/layout/activity_main_player.xml index 0ee247373..5c6349c35 100644 --- a/app/src/main/res/layout/activity_main_player.xml +++ b/app/src/main/res/layout/activity_main_player.xml @@ -46,8 +46,8 @@ android:id="@+id/playQueuePanel" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="#64000000" android:visibility="gone" + android:background="?attr/queue_background_color" tools:visibility="visible"> @@ -85,6 +86,7 @@ android:clickable="true" android:focusable="true" android:scaleType="fitXY" + android:tint="?attr/colorAccent" android:src="@drawable/exo_controls_repeat_off" android:background="?android:selectableItemBackground" tools:ignore="ContentDescription,RtlHardcoded"/> @@ -99,6 +101,7 @@ android:clickable="true" android:focusable="true" android:scaleType="fitXY" + android:tint="?attr/colorAccent" android:src="@drawable/ic_shuffle_white_24dp" android:background="?android:selectableItemBackground" tools:ignore="ContentDescription,RtlHardcoded"/> diff --git a/app/src/main/res/layout/play_queue_item.xml b/app/src/main/res/layout/play_queue_item.xml index f4a5f7022..4d5a6fbd4 100644 --- a/app/src/main/res/layout/play_queue_item.xml +++ b/app/src/main/res/layout/play_queue_item.xml @@ -5,17 +5,32 @@ android:id="@+id/itemRoot" android:layout_width="match_parent" android:layout_height="48dp" - android:background="?attr/selectableItemBackground" + android:foreground="?attr/selectableItemBackground" + android:background="?attr/selector_drawable" android:clickable="true" android:focusable="true" - android:padding="6dp"> + android:paddingTop="6dp" + android:paddingBottom="6dp"> + + @@ -69,7 +83,6 @@ android:maxLines="1" android:textAppearance="?android:attr/textAppearanceLarge" android:textSize="@dimen/video_item_search_title_text_size" - android:textColor="?attr/selector_color" tools:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. "/> \ No newline at end of file diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index de0ffac21..abf7c7b09 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -19,11 +19,13 @@ + + - + \ No newline at end of file diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 3008f68ee..3750bdb78 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -12,6 +12,7 @@ #5a000000 #ffffff #212121 + #c8ffffff #222222 @@ -24,6 +25,7 @@ #82000000 #424242 #ffffff + #af000000 #000 @@ -44,6 +46,9 @@ #d6d6d6 #717171 + #00000000 + #96717171 + #607D8B diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 6a8efb0c2..8f0bb02cd 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -26,11 +26,13 @@ @drawable/ic_language_black_24dp @drawable/ic_history_black_24dp @drawable/ic_drag_handle_black_24dp + @drawable/ic_fiber_manual_record_black_24dp - @color/light_selector @color/light_separator_color @color/light_contrast_background_color + @color/light_queue_background_color @drawable/toolbar_shadow_light + @drawable/light_selector @color/light_ripple_color @style/PreferenceThemeOverlay.v14.Material @@ -62,11 +64,13 @@ @drawable/ic_language_white_24dp @drawable/ic_history_white_24dp @drawable/ic_drag_handle_white_24dp + @drawable/ic_fiber_manual_record_white_24dp - @color/dark_selector @color/dark_separator_color @color/dark_contrast_background_color + @color/dark_queue_background_color @drawable/toolbar_shadow_dark + @drawable/dark_selector @color/dark_ripple_color @style/PreferenceThemeOverlay.v14.Material