Closed
Bug 1369636
Opened 7 years ago
Closed 4 years ago
Fix lint: NewApi issues in MediaControlService.java
Categories
(Firefox for Android Graveyard :: General, defect, P5)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: tyu, Unassigned)
References
Details
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•7 years ago
|
Blocks: lint-newapi
Comment 1•7 years ago
|
||
[triage] Bulk edit from title: this is a non-critical issue or [meta] bug.
Priority: -- → P3
Comment 2•6 years ago
|
||
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
Comment 3•4 years ago
|
||
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Assignee | ||
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•