From 9c86ba103e72cb570b7b5e0f1774b02e13000043 Mon Sep 17 00:00:00 2001 From: Eana Hufwe Date: Mon, 25 Jun 2018 22:04:10 +1000 Subject: [PATCH 1/4] Add fallback when media button press event time is not available. Addressing issue #148. --- .../gramophone/service/MediaButtonIntentReceiver.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/kabouzeid/gramophone/service/MediaButtonIntentReceiver.java b/app/src/main/java/com/kabouzeid/gramophone/service/MediaButtonIntentReceiver.java index 51565d08..4cbe8457 100644 --- a/app/src/main/java/com/kabouzeid/gramophone/service/MediaButtonIntentReceiver.java +++ b/app/src/main/java/com/kabouzeid/gramophone/service/MediaButtonIntentReceiver.java @@ -99,7 +99,9 @@ public class MediaButtonIntentReceiver extends BroadcastReceiver { final int keycode = event.getKeyCode(); final int action = event.getAction(); - final long eventTime = event.getEventTime(); + final long eventTime = event.getEventTime() != 0 ? + event.getEventTime() : System.currentTimeMillis(); + // Fallback to system time if event time was not available. String command = null; switch (keycode) { From 8149b806d1e011055ac95b298b2f8fcf02aa3f2c Mon Sep 17 00:00:00 2001 From: Karim Abou Zeid Date: Mon, 25 Jun 2018 13:10:17 +0200 Subject: [PATCH 2/4] Fix material intro crash. Downgrade to SDK 27 until stable 28 support libs are available. --- app/build.gradle | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 0629ca82..e52d6a85 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -44,18 +44,23 @@ static def getProperty(@Nullable Properties properties, String name) { } android { - compileSdkVersion 28 - buildToolsVersion '28.0.0' + compileSdkVersion 27 + buildToolsVersion '27.0.3' defaultConfig { minSdkVersion 16 - targetSdkVersion 28 + targetSdkVersion 27 - renderscriptTargetApi 28 + renderscriptTargetApi 27 vectorDrawables.useSupportLibrary = true applicationId 'com.kabouzeid.gramophone' versionCode 162 versionName '1.1.0' + + // needed for material intro! + dataBinding { + enabled = true + } } signingConfigs { release { From d251c4c110611a9ee093185de302d36c5a735dda Mon Sep 17 00:00:00 2001 From: Karim Abou Zeid Date: Mon, 25 Jun 2018 13:30:42 +0200 Subject: [PATCH 3/4] Update changelog --- app/src/main/assets/phonograph-changelog.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/assets/phonograph-changelog.html b/app/src/main/assets/phonograph-changelog.html index 27552767..faca7d82 100644 --- a/app/src/main/assets/phonograph-changelog.html +++ b/app/src/main/assets/phonograph-changelog.html @@ -27,6 +27,14 @@

You can view the changelog dialog again at any time from the about section.

+

Version 1.1.1

+
    +
  1. NEW: Preference to turn off shuffle mode when selecting new list of songs
  2. +
  3. FIX: Fix app intro crash
  4. +
  5. FIX: Fix a crash for some artist names which contain special characters
  6. +
  7. FIX: Fix loading of very large embedded album art
  8. +
+

Version 1.1.0

  1. NEW: Select all items in a list
  2. From 0c79eb394e22dba587fc93af2657f8105e33aff1 Mon Sep 17 00:00:00 2001 From: Karim Abou Zeid Date: Mon, 25 Jun 2018 13:31:07 +0200 Subject: [PATCH 4/4] Bump build version --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index e52d6a85..fc07753b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -54,8 +54,8 @@ android { vectorDrawables.useSupportLibrary = true applicationId 'com.kabouzeid.gramophone' - versionCode 162 - versionName '1.1.0' + versionCode 163 + versionName '1.1.1' // needed for material intro! dataBinding {