2231 Commits

Author SHA1 Message Date
Adrian Ulrich
7ffd0169b3 patch DragSortListView to support setOnTouchListener calls.
This enables users of a DSLV to call setOnTouchListener without breaking the drag functionality.
2018-11-25 14:42:09 +01:00
Adrian Ulrich
597d704e4e Have the popup menu overlap its parent 2018-11-24 21:12:24 +01:00
Adrian Ulrich
bad663761a fix horizontal calculation 2018-11-24 20:45:03 +01:00
Adrian Ulrich
f8fd73999e improve size calculation 2018-11-24 20:33:09 +01:00
Adrian Ulrich
89b110e5ea Improve listview measurement 2018-11-24 20:14:11 +01:00
Adrian Ulrich
02de9b3cba update translations 2018-11-22 21:18:24 +01:00
Adrian Ulrich
82d8b7cccd use coordclicklistener in all places 2018-11-22 21:15:08 +01:00
Adrian Ulrich
715b80044f Make fancymenu a ListPopupWindow 2018-11-22 21:07:34 +01:00
Adrian Ulrich
d85120e9a1 add padding to fancymenu row 2018-11-22 21:07:34 +01:00
Dmitri Davydok
eea0e444db Add stop to allowed actions. (#874) 2018-11-21 20:32:42 +01:00
Adrian Ulrich
4fe3cb707b target 1.0.80 2018-11-17 11:14:39 +01:00
Adrian Ulrich
5f532ac045 update translations 2018-11-17 11:11:43 +01:00
Toby Hsieh
d00b3e4769 Add a Jump to Time dialog (#868)
* Add a Jump to Time dialog

This implements #827 by adding a context menu entry to open a dialog
that allows the user to input a time/position to seek to for the current
song.

* Use callback interface for JumpToTimeDialog position submission

* Automatically show soft keyboard for JumpToTimeDialog

* Automatically move to next EditText in JumpToTimeDialog

* Crash if JumpToTimeDialog is started by wrong activity
2018-11-15 18:28:00 +01:00
Adrian Ulrich
c112925890 Use ViewHolder in item click event 2018-11-12 18:13:57 +01:00
Adrian Ulrich
72710df2c1 Fix fancymenu on Android 4.x 2018-11-12 13:54:29 +01:00
Adrian Ulrich
0c8e81c85d Set title for playlist dialog 2018-11-12 11:03:56 +01:00
Adrian Ulrich
5e629a0d13 update translations 2018-11-12 11:00:16 +01:00
Adrian Ulrich
fae1f7207b add fancymanu to playlist activity 2018-11-12 10:57:34 +01:00
Adrian Ulrich
5e39f5ceec Add FancyMenu to ShowQueueFragment 2018-11-12 10:41:23 +01:00
Adrian Ulrich
893e96cbd4 add 'remove' drawable 2018-11-12 10:11:52 +01:00
Adrian Ulrich
77f48a00f5 update icons 2018-11-12 09:45:07 +01:00
Toby Hsieh
7c92c27336 Add FOREGROUND_SERVICE permission (#867)
Since 7c9731e05b4e5ebb92f5fe59519709606ba50ef9 targets API 28, playing a
song will crash on Android 9 unless we declare this permission.

See https://developer.android.com/about/versions/pie/android-9.0-changes-28#fg-svc
2018-11-12 08:41:59 +01:00
Adrian Ulrich
35417495b1 update makefile paths 2018-11-12 08:41:28 +01:00
Adrian Ulrich
1d11f64e9e tune fancymenu layout 2018-11-02 21:10:02 +01:00
Adrian Ulrich
0df0328eef Add menu drawables 2018-11-02 20:49:52 +01:00
Adrian Ulrich
62ea38873a ...aaand also add layouts for fancymenu. 2018-11-01 20:56:26 +01:00
Adrian Ulrich
5a0fd2b538 Introduce FancyMenu.
A menu-item like menu which gives us better layout control.
2018-11-01 20:55:32 +01:00
Adrian Ulrich
885618ef36 redo text at bottom layout 2018-10-27 19:02:26 +02:00
Adrian Ulrich
f9f70632bb switch travis back to build-tools 27 to make it happy? 2018-10-27 11:22:38 +02:00
Adrian Ulrich
2afbfcb90f Avoid crash if empty is label (no genre) 2018-10-27 11:18:34 +02:00
Adrian Ulrich
7c9731e05b upgrade API level 28. 2018-10-27 11:14:57 +02:00
Adrian Ulrich
779d418a9d disable add-to-homescreen for files 2018-10-27 10:50:47 +02:00
Adrian Ulrich
20962e37d0 Reorganise context menu 2018-10-26 22:17:30 +02:00
Adrian Ulrich
4ac874d4de support for legacy devices 2018-10-26 21:24:06 +02:00
Adrian Ulrich
62e498a1a9 initial shortcut support 2018-10-26 20:20:15 +02:00
Adrian Ulrich
e37225bb91 update translations 2018-10-24 20:42:13 +02:00
Adrian Ulrich
1364754980 allow to stort albums by duration 2018-10-24 20:41:15 +02:00
Adrian Ulrich
13fff22d0c Check full native media library if startNormalScan() is called.
Make library scans more agressive, even if we not scan the full filesystem.

This is only invoked by background scheduler scans OR user triggered actions.
The quickscan will still only check the library diff.
2018-10-22 21:15:01 +02:00
Adrian Ulrich
c6fedb9e17 do not index hidden files or folders. 2018-10-22 21:03:24 +02:00
Adrian Ulrich
e3b878e69b fix loading of unindexed files via dispatch.
This is so brittle but the best thing we have - thanks to this patch, it even starts to work (again).
2018-10-22 20:34:32 +02:00
Pander
2cddcb59b3 improved artwork (#856)
* improved artwork

* fixed for fdroid via fastlane
2018-10-22 19:01:01 +02:00
Toby Hsieh
17eea6c868 Display durations in albums tab (#857) 2018-10-22 19:00:33 +02:00
Toby Hsieh
6ab4e137ac Set STYLE_NO_TITLE for TrackDetailsDialog (#855)
This gets rid of the blank title section in the dialog when shown on the
playlist activity and on older versions of Android.
2018-10-19 08:04:51 +02:00
Toby Hsieh
71acc1782d Add context menu for song/track details dialog (#849)
* Add context menu for song/track details dialog

This addresses #506

* Add GPL 3 boilerplate to files

* Refactor track and disc number string for song details
2018-10-17 08:24:53 +02:00
Adrian Ulrich
7339681907 use Long.valueOf 2018-10-14 20:13:54 +02:00
Adrian Ulrich
dd24247fea remove reference to context in static class. 2018-10-14 20:09:59 +02:00
Adrian Ulrich
d1af6dab36 use apply() to store preferences. 2018-10-14 19:54:52 +02:00
Adrian Ulrich
ce9ccd9bd4 Unregister sharedpreferences listener on destroy.
If the playback service is stopped before the main activity gets killed, this would have caused the old class to still get updates.

Sending preference updates to such an orphaned PlaybackService would trigger crashes in some cases (especially when MediaLibrary detects suspicious unregisters).
2018-10-14 19:44:51 +02:00
Antic1tizen One
e2598806ac No smooth scroll if user doesn't see it. Fixes vanilla-music/vanilla#844 (#847)
The change adds interactive check to see if smooth scroll is actually
needed. If user doesn't see the library screen there's no point in
doing smooth scroll.

Besides, for old Android versions (like 4.x)
View.getFirstVisiblePosition, View.getLastVisiblePosition calls are
working only if view is currently visible.
2018-10-13 12:13:57 +02:00
Adrian Ulrich
12824fd47b make enterSleepState() synchronized.
There are a few crashes in the play store where the framework complains that we are underlocked.
Maybe this races with onDestroy() in some rare cases.
2018-10-13 09:42:52 +02:00