Skip to content

Commit

Permalink
完善广播接收器,发布 1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjunyu19 committed Oct 19, 2019
1 parent 56acaf5 commit 0b687f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "cn.morfans.chenjunyu19.mediavolume"
minSdkVersion 24
targetSdkVersion 28
versionCode 11
versionName "1.5"
versionCode 12
versionName "1.5.1"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ abstract class MediaTileService extends TileService {
@Override
public void onClick() {
util.setVol();
util.setTile();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public void onReceive(Context context, Intent intent) {
}
};
context.registerReceiver(br, new IntentFilter("android.media.VOLUME_CHANGED_ACTION"));
context.registerReceiver(br, new IntentFilter("android.media.STREAM_DEVICES_CHANGED_ACTION"));
context.registerReceiver(br, new IntentFilter("android.media.STREAM_MUTE_CHANGED_ACTION"));
}

void unregBR() {
Expand Down

0 comments on commit 0b687f5

Please sign in to comment.