1412 Commits

Author SHA1 Message Date
Adrian Ulrich
5c1c2e0cfe set scrollbar style in theme
We only use inset on HOLO - Material can use the default style (insideOverlay) as we control
the fastscroll area on our own via a3b4eefe09a3d2c358a5e7f39f5b987acc0a667a
2016-04-04 21:47:56 +02:00
Adrian Ulrich
2967bb38eb update contributors 2016-04-04 20:56:37 +02:00
Adrian Ulrich
a3b4eefe09 Introduce FastScrollGuardListView
This is a hack to work around androids stupid 48dip fast-scroll area: The framework will hijack any scroll events which happen
near (=48 dp) the fast scroll bar. We do not want this as it clashes with our expand buttons.

This class intercepts events in the problematic area and rewrites them to a fake event to pretend that the touch did not happen in the fastscroll area
2016-04-04 20:52:06 +02:00
Xiao Bao Clark
39437ec287 Add nightly link to about page 2016-04-03 02:49:54 +10:00
Adrian Ulrich
f9015ea001 Merge pull request #315 from Adonai/vanilla
Add fast-scroll indexer to MediaAdapter (Library View)
2016-04-02 20:52:06 +02:00
Adrian Ulrich
a023b75ec7 Use own divider with outsideInset scrollbar 2016-04-02 20:47:59 +02:00
Адонай Элохим
43ccf6de4d Make fast scroll sort-aware 2016-04-02 13:47:19 +03:00
Adrian Ulrich
90a021f9fa Unbreak KitKat
which was broken by c0adcdee
2016-04-01 19:19:19 +02:00
Адонай Элохим
6b8b15acbe Add fast-scroll indexer to MediaAdapter 2016-04-01 01:13:00 +03:00
Adrian Ulrich
fca3ff0389 fix some lint errors 2016-03-31 20:39:36 +02:00
Adrian Ulrich
422c28e4f3 remove superfluent namespace declartation 2016-03-31 20:30:45 +02:00
Adrian Ulrich
a3439c0dbf obey lint
apply() saves in background which is good enough for us
2016-03-31 20:28:34 +02:00
Adrian Ulrich
29ccd7dc5c do not hardcode package name 2016-03-31 20:26:32 +02:00
Adrian Ulrich
c1457ad7ac Merge pull request #313 from xbao/gradlewrapper
Add Gradle wrapper v2.2.1
2016-03-31 20:19:27 +02:00
Adrian Ulrich
75f2ce9c21 update translations 2016-03-31 20:18:16 +02:00
Adrian Ulrich
031b35f69e hide menue entries affecting the current song 2016-03-31 20:13:46 +02:00
Xiao Bao Clark
eeee710f90 Add Gradle wrapper v2.2.1
A gradle wrapper script allows a developer to download and use the
correct version of gradle for Vanilla without needing to install it on
their machine. Vanilla uses v1.3.0 of the Android Gradle plugin, which
requires Gradle v2.2.1.

This commit adds the gradle wrapper, generated using

```
gradle wrapper --gradle-version 2.2.1
```

This command generates a gradle-wrapper.properties that links to the
binary distribution of Gradle. For better integration with IDE's, this
commit changes the URL to '*-all.zip'

More information about the Gradle wrapper can be found in the
[Gradle User Guide - Wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.html)
2016-03-29 11:48:13 +11:00
Adrian Ulrich
7271b14c34 clear bottom bar if queue is empty 2016-03-28 13:51:28 +02:00
Adrian Ulrich
12516353f3 inherit sent time generation on state changes
The old code used to drop valid events. example:
* Event 1 born
* Event 2 born
* Event 1 processed
* Event 2 dropped

This change inherits the 'born' time while still giving UI
updates priority
2016-03-28 13:47:37 +02:00
Adrian Ulrich
f4cbd1053e Avoid race during fragment creation
onTimelineChanged() is not always called on creation, but setSong() is
2016-03-28 13:14:44 +02:00
Adrian Ulrich
62d83dbf32 Relax cover filename matching
as requested in #293
2016-03-28 09:42:40 +02:00
Adrian Ulrich
4e783635b9 Target 1.0.38 2016-03-28 09:04:27 +02:00
Adrian Ulrich
86c6a3b326 Call notifyDataSetChanged() to trigger view updates
Calling notifyDataSetInvalidated() would mean that we abaddon this adapter

Fixes #84 (again)
2016-03-28 09:00:00 +02:00
Adrian Ulrich
0ada623946 make spacer clickable (again) 2016-03-28 08:29:42 +02:00
Adrian Ulrich
5e2f466821 snap in at half of the childs height 2016-03-28 08:18:37 +02:00
Adrian Ulrich
4ef83abf32 change fling behaviour 2016-03-27 22:05:43 +02:00
Adrian Ulrich
e96643b9a6 Set initial fake offset to Integer.MAX_VALUE
This fixes issues with out-of-screen-swipes
2016-03-27 18:31:19 +02:00
Adrian Ulrich
6824ee229b handle back button for slide 2016-03-27 18:15:43 +02:00
Adrian Ulrich
48fc99ac42 add save_queue_as_playlist to PlaybackActivity 2016-03-27 17:35:57 +02:00
Adrian Ulrich
d9957be6d5 Bye bye ShowQueueActivity, you did well. 2016-03-27 17:31:23 +02:00
Adrian Ulrich
1c5a0eb0c2 only add items with icons to bottombar 2016-03-27 17:21:53 +02:00
Adrian Ulrich
2768ea1c7e add MENU_EMPTY_QUEUE 2016-03-27 16:56:50 +02:00
Adrian Ulrich
cf34ba9de1 move MENU_CLEAR to PlaybackActivity 2016-03-27 16:52:05 +02:00
Adrian Ulrich
9dd046298e initial handling of slide callbacks 2016-03-27 16:37:59 +02:00
Adrian Ulrich
4578cee645 get rid of old and ugly (invisible) icon 2016-03-27 16:19:18 +02:00
Adrian Ulrich
05fec14d9b implement SlidingView.Callback 2016-03-27 16:14:54 +02:00
Adrian Ulrich
24ed0d6504 Update README.md
Add link to f-droid
2016-03-27 14:08:07 +02:00
Adrian Ulrich
b3e97c4418 move getFilesystemBrowseStart into FileUtils
Thats far better than extending PlaybackActivity just for this
2016-03-21 21:44:11 +01:00
Adrian Ulrich
5652917b49 Merge pull request #308 from lcremmer/RockscoutOptIn
MirrorLink: allow RockScout remote access outside of a Car
2016-03-21 20:15:16 +01:00
Adrian Ulrich
2c6bf316e1 implement bindControlButtons() 2016-03-20 18:20:29 +01:00
Adrian Ulrich
1a6774ca2f squash-merge of slide-up branch 2016-03-20 13:21:25 +01:00
Laurent Cremmer
93a52a387b MirrorLink/Rockscout: allow RockScout to be used as an alternative UI for Vanilla outside of a Car 2016-03-18 07:44:26 +00:00
Adrian Ulrich
563b01ee6c Merge pull request #296 from xbao/genres-hide-empty
Exclude empty genres from genre list
2016-03-08 20:56:34 +01:00
Xiao Bao Clark
5a72d52153 Reset search when an item is expanded 2016-03-06 11:52:54 +01:00
Adrian Ulrich
c0adcdee2f Introduce TimelineCallback
This makes it simpler for non-playback activities to get callbacks
2016-02-28 13:06:44 +01:00
Xiao Bao Clark
8c6993537d Exclude empty genres from genre list
Previously, genres without any songs associated with them would appear
in the Library genre list.

This commit adds a new query for genres that excludes these empty genres.

This partially fixes issue #286 (empty genres cannot be deleted) -
genres still can't be deleted, but the empty ones will no longer appear.
2016-02-28 12:08:58 +11:00
Adrian Ulrich
29307ae357 set correct default value
This should have been done in b7fae56fc30ab7c172fd9345f748dd0b25170290
2016-02-27 16:13:42 +01:00
Adrian Ulrich
a347f38eb7 Merge pull request #291 from xbao/fix/cover-crash
Check width and height > 0 before generating bitmap
2016-02-20 09:34:47 +01:00
Xiao Bao Clark
8fbfaae8a2 Check width and height > 0 before generating bitmap
Creating a bitmap with 0 width or height will cause a fatal exception.

A check was added in commit 2149745, but there are still some crashes
(e.g. issue #267). This commit replicates that check directly before the
creation of the bitmap.
2016-02-20 13:14:20 +11:00
amin bandali
ebcc88fe40 Change the wording of subreddit link in about.html
Say "Community & support", instead of just "Subreddit", for more clarity for
people who might not know reddit.

Suggested by /u/Piscivm at
https://www.reddit.com/r/vanillamusic/comments/41x3n9/suggestion_user_forum_in_about_page/
2016-02-14 00:08:14 -05:00