Example #1
0
 @TargetApi(19)
 private CaptionStyleCompat getUserCaptionStyleV19() {
   CaptioningManager captioningManager =
       (CaptioningManager) getSystemService(Context.CAPTIONING_SERVICE);
   return CaptionStyleCompat.createFromCaptionStyle(captioningManager.getUserStyle());
 }
Example #2
0
 @TargetApi(19)
 private float getUserCaptionFontScaleV19() {
   CaptioningManager captioningManager =
       (CaptioningManager) getSystemService(Context.CAPTIONING_SERVICE);
   return captioningManager.getFontScale();
 }