Fix lint: NewApi issues in MediaControlService.java

NEW
Unassigned

Status

()

P5
normal
a year ago
2 months ago

People

(Reporter: tyu, Unassigned)

Tracking

(Blocks: 1 bug)

55 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
34 occurrences:

../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:109: Call requires API level 21 (current min is 15): android.media.session.MediaSession#release

 106 
 107     @Override
 108     public boolean onUnbind(Intent intent) {
 109         mSession.release();
 110         return super.onUnbind(intent);
 111     }

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:210: Call requires API level 21 (current min is 15): android.media.session.MediaController#getTransportControls

 207                 // pending intent.
 208                 break;
 209             case ACTION_RESUME :
 210                 mController.getTransportControls().play();
 211                 break;
 212             case ACTION_PAUSE :

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:210: Call requires API level 21 (current min is 15): android.media.session.MediaController.TransportControls#play

 207                 // pending intent.
 208                 break;
 209             case ACTION_RESUME :
 210                 mController.getTransportControls().play();
 211                 break;
 212             case ACTION_PAUSE :

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:213: Call requires API level 21 (current min is 15): android.media.session.MediaController#getTransportControls

 210                 mController.getTransportControls().play();
 211                 break;
 212             case ACTION_PAUSE :
 213                 mController.getTransportControls().pause();
 214                 break;
 215             case ACTION_STOP :

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:213: Call requires API level 21 (current min is 15): android.media.session.MediaController.TransportControls#pause

 210                 mController.getTransportControls().play();
 211                 break;
 212             case ACTION_PAUSE :
 213                 mController.getTransportControls().pause();
 214                 break;
 215             case ACTION_STOP :

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:216: Call requires API level 21 (current min is 15): android.media.session.MediaController#getTransportControls

 213                 mController.getTransportControls().pause();
 214                 break;
 215             case ACTION_STOP :
 216                 mController.getTransportControls().stop();
 217                 break;
 218             case ACTION_PAUSE_BY_AUDIO_FOCUS :

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:216: Call requires API level 21 (current min is 15): android.media.session.MediaController.TransportControls#stop

 213                 mController.getTransportControls().pause();
 214                 break;
 215             case ACTION_STOP :
 216                 mController.getTransportControls().stop();
 217                 break;
 218             case ACTION_PAUSE_BY_AUDIO_FOCUS :

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:219: Call requires API level 21 (current min is 15): android.media.session.MediaController#getTransportControls

 216                 mController.getTransportControls().stop();
 217                 break;
 218             case ACTION_PAUSE_BY_AUDIO_FOCUS :
 219                 mController.getTransportControls().sendCustomAction(ACTION_PAUSE_BY_AUDIO_FOCUS, null);
 220                 break;
 221             case ACTION_RESUME_BY_AUDIO_FOCUS :

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:219: Call requires API level 21 (current min is 15): android.media.session.MediaController.TransportControls#sendCustomAction

 216                 mController.getTransportControls().stop();
 217                 break;
 218             case ACTION_PAUSE_BY_AUDIO_FOCUS :
 219                 mController.getTransportControls().sendCustomAction(ACTION_PAUSE_BY_AUDIO_FOCUS, null);
 220                 break;
 221             case ACTION_RESUME_BY_AUDIO_FOCUS :

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:222: Call requires API level 21 (current min is 15): android.media.session.MediaController#getTransportControls

 219                 mController.getTransportControls().sendCustomAction(ACTION_PAUSE_BY_AUDIO_FOCUS, null);
 220                 break;
 221             case ACTION_RESUME_BY_AUDIO_FOCUS :
 222                 mController.getTransportControls().sendCustomAction(ACTION_RESUME_BY_AUDIO_FOCUS, null);
 223                 break;
 224             case ACTION_START_AUDIO_DUCK:

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:222: Call requires API level 21 (current min is 15): android.media.session.MediaController.TransportControls#sendCustomAction

 219                 mController.getTransportControls().sendCustomAction(ACTION_PAUSE_BY_AUDIO_FOCUS, null);
 220                 break;
 221             case ACTION_RESUME_BY_AUDIO_FOCUS :
 222                 mController.getTransportControls().sendCustomAction(ACTION_RESUME_BY_AUDIO_FOCUS, null);
 223                 break;
 224             case ACTION_START_AUDIO_DUCK:

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:238: Call requires API level 21 (current min is 15): android.media.session.MediaController#getPlaybackInfo

 235             return;
 236         }
 237 
 238         int currentVolume = mController.getPlaybackInfo().getCurrentVolume();
 239         int maxVolume = mController.getPlaybackInfo().getMaxVolume();
 240 

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:238: Call requires API level 21 (current min is 15): android.media.session.MediaController.PlaybackInfo#getCurrentVolume

 235             return;
 236         }
 237 
 238         int currentVolume = mController.getPlaybackInfo().getCurrentVolume();
 239         int maxVolume = mController.getPlaybackInfo().getMaxVolume();
 240 

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:239: Call requires API level 21 (current min is 15): android.media.session.MediaController#getPlaybackInfo

 236         }
 237 
 238         int currentVolume = mController.getPlaybackInfo().getCurrentVolume();
 239         int maxVolume = mController.getPlaybackInfo().getMaxVolume();
 240 
 241         int adjustDirection;

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:239: Call requires API level 21 (current min is 15): android.media.session.MediaController.PlaybackInfo#getMaxVolume

 236         }
 237 
 238         int currentVolume = mController.getPlaybackInfo().getCurrentVolume();
 239         int maxVolume = mController.getPlaybackInfo().getMaxVolume();
 240 
 241         int adjustDirection;

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:251: Call requires API level 21 (current min is 15): android.media.session.MediaController#adjustVolume

 248         }
 249 
 250         for (int i = 0; i < mAudioDuckCurrentSteps; i++) {
 251             mController.adjustVolume(adjustDirection, 0);
 252         }
 253     }

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:285: Call requires API level 21 (current min is 15): new android.media.session.MediaSession

 282 
 283     private void initMediaSession() {
 284         // Android MediaSession is introduced since version L.
 285         mSession = new MediaSession(getApplicationContext(),
 286                 "fennec media session");
 287         mController = new MediaController(getApplicationContext(),

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:288: Call requires API level 21 (current min is 15): android.media.session.MediaSession#getSessionToken

 285         mSession = new MediaSession(getApplicationContext(),
 286                 "fennec media session");
 287         mController = new MediaController(getApplicationContext(),
 288                 mSession.getSessionToken());
 289 
 290         int volumeControl = mController.getPlaybackInfo().getVolumeControl();

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:288: Call requires API level 21 (current min is 15): new android.media.session.MediaController

 285         mSession = new MediaSession(getApplicationContext(),
 286                 "fennec media session");
 287         mController = new MediaController(getApplicationContext(),
 288                 mSession.getSessionToken());
 289 
 290         int volumeControl = mController.getPlaybackInfo().getVolumeControl();

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:290: Call requires API level 21 (current min is 15): android.media.session.MediaController#getPlaybackInfo

 287         mController = new MediaController(getApplicationContext(),
 288                 mSession.getSessionToken());
 289 
 290         int volumeControl = mController.getPlaybackInfo().getVolumeControl();
 291         if (volumeControl == VolumeProvider.VOLUME_CONTROL_ABSOLUTE ||
 292                 volumeControl == VolumeProvider.VOLUME_CONTROL_RELATIVE) {

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:290: Call requires API level 21 (current min is 15): android.media.session.MediaController.PlaybackInfo#getVolumeControl

 287         mController = new MediaController(getApplicationContext(),
 288                 mSession.getSessionToken());
 289 
 290         int volumeControl = mController.getPlaybackInfo().getVolumeControl();
 291         if (volumeControl == VolumeProvider.VOLUME_CONTROL_ABSOLUTE ||
 292                 volumeControl == VolumeProvider.VOLUME_CONTROL_RELATIVE) {

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:298: Call requires API level 21 (current min is 15): android.media.session.MediaSession#setCallback

 295             Log.w(LOGTAG, "initMediaSession, Session does not support volume absolute or relative volume control");
 296         }
 297 
 298         mSession.setCallback(new MediaSession.Callback() {
 299             @Override
 300             public void onCustomAction(String action, Bundle extras) {

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:298: Call requires API level 21 (current min is 15): new android.media.session.MediaSession.Callback

 295             Log.w(LOGTAG, "initMediaSession, Session does not support volume absolute or relative volume control");
 296         }
 297 
 298         mSession.setCallback(new MediaSession.Callback() {
 299             @Override
 300             public void onCustomAction(String action, Bundle extras) {

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:298: Class requires API level 21 (current min is 15): android.media.session.MediaSession.Callback

 295             Log.w(LOGTAG, "initMediaSession, Session does not support volume absolute or relative volume control");
 296         }
 297 
 298         mSession.setCallback(new MediaSession.Callback() {
 299             @Override
 300             public void onCustomAction(String action, Bundle extras) {

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:394: Call requires API level 21 (current min is 15): new android.app.Notification.MediaStyle

 391     protected void updateNotification(Tab tab) {
 392         ThreadUtils.assertNotOnUiThread();
 393 
 394         final Notification.MediaStyle style = new Notification.MediaStyle();
 395         style.setShowActionsInCompactView(0);
 396 

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:395: Call requires API level 21 (current min is 15): android.app.Notification.MediaStyle#setShowActionsInCompactView

 392         ThreadUtils.assertNotOnUiThread();
 393 
 394         final Notification.MediaStyle style = new Notification.MediaStyle();
 395         style.setShowActionsInCompactView(0);
 396 
 397         final boolean isPlaying = isMediaPlaying();

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:408: Call requires API level 16 (current min is 15): android.app.Notification.Builder#setStyle

 405             .setContentText(tab.getURL())
 406             .setContentIntent(createContentIntent(tab))
 407             .setDeleteIntent(createDeleteIntent())
 408             .setStyle(style)
 409             .addAction(createNotificationAction())
 410             .setOngoing(isPlaying)

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:408: Cast from Notification.MediaStyle to Notification.Style requires API level 21 (current min is 15)

 405             .setContentText(tab.getURL())
 406             .setContentIntent(createContentIntent(tab))
 407             .setDeleteIntent(createDeleteIntent())
 408             .setStyle(style)
 409             .addAction(createNotificationAction())
 410             .setOngoing(isPlaying)

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:409: Call requires API level 20 (current min is 15): android.app.Notification.Builder#addAction

 406             .setContentIntent(createContentIntent(tab))
 407             .setDeleteIntent(createDeleteIntent())
 408             .setStyle(style)
 409             .addAction(createNotificationAction())
 410             .setOngoing(isPlaying)
 411             .setShowWhen(false)

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:411: Call requires API level 17 (current min is 15): android.app.Notification.Builder#setShowWhen

 408             .setStyle(style)
 409             .addAction(createNotificationAction())
 410             .setOngoing(isPlaying)
 411             .setShowWhen(false)
 412             .setWhen(0)
 413             .setVisibility(visibility)

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:413: Call requires API level 21 (current min is 15): android.app.Notification.Builder#setVisibility

 410             .setOngoing(isPlaying)
 411             .setShowWhen(false)
 412             .setWhen(0)
 413             .setVisibility(visibility)
 414             .build();
 415 

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:414: Call requires API level 16 (current min is 15): android.app.Notification.Builder#build

 411             .setShowWhen(false)
 412             .setWhen(0)
 413             .setVisibility(visibility)
 414             .build();
 415 
 416         if (isPlaying) {

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:435: Call requires API level 20 (current min is 15): android.app.Notification.Action.Builder#build

 432         final PendingIntent pendingIntent = PendingIntent.getService(getApplicationContext(), 1, intent, 0);
 433 
 434         //noinspection deprecation - The new constructor is only for API > 23
 435         return new Notification.Action.Builder(icon, title, pendingIntent).build();
 436     }
 437 

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java:435: Call requires API level 20 (current min is 15): new android.app.Notification.Action.Builder

 432         final PendingIntent pendingIntent = PendingIntent.getService(getApplicationContext(), 1, intent, 0);
 433 
 434         //noinspection deprecation - The new constructor is only for API > 23
 435         return new Notification.Action.Builder(icon, title, pendingIntent).build();
 436     }
 437 

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
(Reporter)

Updated

a year ago
Blocks: 1218477
[triage] Bulk edit from title: this is a non-critical issue or [meta] bug.
Priority: -- → P3
Re-triaging per https://bugzilla.mozilla.org/show_bug.cgi?id=1473195

Needinfo :susheel if you think this bug should be re-triaged.
Priority: P3 → P5
You need to log in before you can comment on or make changes to this bug.