diff --git a/app/build.gradle b/app/build.gradle index 07afa0d3..a9b27502 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -6,8 +6,8 @@ android { applicationId "com.adam.aslfms" minSdkVersion 14 targetSdkVersion 26 - versionCode = 51 - versionName = "1.6.0" + versionCode = 52 + versionName = "1.6.1" testApplicationId "com.adam.aslfms.test" testInstrumentationRunner "android.test.InstrumentationTestRunner" diff --git a/app/src/main/java/com/adam/aslfms/service/ControllerReceiverService.java b/app/src/main/java/com/adam/aslfms/service/ControllerReceiverService.java index 14244470..04310b4d 100644 --- a/app/src/main/java/com/adam/aslfms/service/ControllerReceiverService.java +++ b/app/src/main/java/com/adam/aslfms/service/ControllerReceiverService.java @@ -119,10 +119,10 @@ public void onListenerDisconnected() { } public void init(){ - MediaSessionManager mediaSessionManager = (MediaSessionManager) this.getApplicationContext().getSystemService(Context.MEDIA_SESSION_SERVICE) ; - mControllerReceiverSession = new ControllerReceiverSession(this); - + MediaSessionManager mediaSessionManager = null; try { + mediaSessionManager = (MediaSessionManager) this.getApplicationContext().getSystemService(Context.MEDIA_SESSION_SERVICE) ; + mControllerReceiverSession = new ControllerReceiverSession(this); mediaSessionManager.addOnActiveSessionsChangedListener(mControllerReceiverSession, new ComponentName(this, ControllerReceiverService.class)); Log.d(TAG, "media session manager loaded"); } catch (Exception e) { diff --git a/app/src/main/res/drawable-hdpi/ic_icon.png b/app/src/main/res/drawable-hdpi/ic_icon.png new file mode 100644 index 00000000..33aa1ab7 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_icon.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_icon.png b/app/src/main/res/drawable-mdpi/ic_icon.png new file mode 100644 index 00000000..aea10827 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_icon.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_icon.png b/app/src/main/res/drawable-xhdpi/ic_icon.png new file mode 100644 index 00000000..d862e39b Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_icon.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_icon.png b/app/src/main/res/drawable-xxhdpi/ic_icon.png new file mode 100644 index 00000000..6575d06b Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_icon.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_icon.png b/app/src/main/res/drawable-xxxhdpi/ic_icon.png new file mode 100644 index 00000000..5b20b086 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_icon.png differ diff --git a/app/src/main/res/drawable/ic_icon.xml b/app/src/main/res/drawable/ic_icon.xml deleted file mode 100644 index b0581c9c..00000000 --- a/app/src/main/res/drawable/ic_icon.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - diff --git a/art/icon_new_white.svg b/art/icon_new_white.svg new file mode 100644 index 00000000..d0a6aa25 --- /dev/null +++ b/art/icon_new_white.svg @@ -0,0 +1,92 @@ + + + +image/svg+xml + + + + + + + + + + \ No newline at end of file diff --git a/art/icon_new_white_square_rounded.svg b/art/icon_new_white_square_rounded.svg new file mode 100644 index 00000000..3886521c --- /dev/null +++ b/art/icon_new_white_square_rounded.svg @@ -0,0 +1,100 @@ + + + +image/svg+xml + + + + + + + + + + \ No newline at end of file diff --git a/art/icon_white.svg b/art/icon_white.svg deleted file mode 100644 index 55670f73..00000000 --- a/art/icon_white.svg +++ /dev/null @@ -1,124 +0,0 @@ - - - -image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file