Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
Fix the app crash when run on android api level <= 23 (#311)
Browse files Browse the repository at this point in the history
Adapt run all android api level
  • Loading branch information
catmans1 authored and tanguyantoine committed Dec 9, 2019
1 parent 36c090f commit 9be009c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private boolean hasControl(long control) {
}

private void updateNotificationMediaStyle() {
if (!(Build.MANUFACTURER.toLowerCase(Locale.getDefault()).contains("huawei") && Build.VERSION.SDK_INT < Build.VERSION_CODES.M)) {
if (!Build.MANUFACTURER.toLowerCase(Locale.getDefault()).contains("huawei") && Build.VERSION.SDK_INT > Build.VERSION_CODES.M) {
MediaStyle style = new MediaStyle();
style.setMediaSession(session.getSessionToken());
int controlCount = 0;
Expand Down

0 comments on commit 9be009c

Please sign in to comment.