Skip to content

Commit

Permalink
call "/hide-player" from Service before shutting down
Browse files Browse the repository at this point in the history
  • Loading branch information
warren-bank committed Oct 15, 2021
1 parent 55a4bdd commit dd26c3b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ private void shutdown(boolean useForce) {
return;
}

hide_player();

playbackStatusMonitor.stop();
playerNotificationManager.release();
playerManager.release();
Expand Down Expand Up @@ -155,6 +157,12 @@ public void run() {
}.start();
}

private void hide_player() {
Message msg = Message.obtain();
msg.what = Constant.Msg.Msg_Hide_Player;
MainApp.broadcastMessage(msg);
}

@Override
public IBinder onBind(Intent intent) {
return null;
Expand Down
4 changes: 2 additions & 2 deletions android-studio-project/constants.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project.ext {
releaseVersionCode = Integer.parseInt("002003016", 10) //Integer.MAX_VALUE == 2147483647
releaseVersion = '002.00.30-16API'
releaseVersionCode = Integer.parseInt("002003116", 10) //Integer.MAX_VALUE == 2147483647
releaseVersion = '002.00.31-16API'
javaVersion = JavaVersion.VERSION_1_8
minSdkVersion = 16
targetSdkVersion = 29
Expand Down

0 comments on commit dd26c3b

Please sign in to comment.