samedi 30 juillet 2016

RatingCompat.newUnratedRating() causes System UI to crash

When I set MediaMetadataCompat rating as unrated, then turn screen off and back on, on some systems UI can't handle it and continuously restarts (obviously, crashes). My code:

new MediaMetadataCompat.Builder().putRating(MediaMetadataCompat.METADATA_KEY_RATING, RatingCompat.newUnratedRating(RatingCompat.RATING_5_STARS));

My environment: OS: Android 4.4 x86 (with Google APIs) Emulator version: 25.1.7

Is it a bug in the support library?

Aucun commentaire:

Enregistrer un commentaire