Skip to content

Commit

Permalink
optimize 'NotificationView'
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfeng committed Sep 1, 2020
1 parent e8bb8ff commit d55b742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player/src/main/java/snow/player/PlayerService.java
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,7 @@ void init(PlayerService playerService) {
mDefaultIcon = getDefaultIcon();
mIcon = mDefaultIcon;

setIconSize(playerService.getResources().getDimensionPixelSize(R.dimen.snow_notif_icon_size_big));
setNeedReloadIcon(true);
onInit(mPlayerService);

Expand Down Expand Up @@ -1561,7 +1562,6 @@ public static class MediaNotificationView extends NotificationView {
@Override
protected void onInit(Context context) {
initAllPendingIntent();
setIconSize(context.getResources().getDimensionPixelSize(R.dimen.snow_notif_icon_size_big));
}

private void initAllPendingIntent() {
Expand Down

0 comments on commit d55b742

Please sign in to comment.