Exemplo n.º 1
0
 @Override
 public void layoutSurface(final int left, final int top, final int right, final int bottom) {
   int[] surfaceDimensions = tvInputProvider.getLayoutDimensions();
   if (surfaceDimensions == null) super.layoutSurface(left, top, right, bottom);
   else
     super.layoutSurface(
         surfaceDimensions[0], surfaceDimensions[1], surfaceDimensions[2], surfaceDimensions[3]);
 }
Exemplo n.º 2
0
 @Override
 public void onUnblockContent(TvContentRating unblockedRating) {
   super.onUnblockContent(unblockedRating);
   if (tvInputProvider
       .getApplicationContext()
       .getResources()
       .getBoolean(R.bool.channel_surfer_lifecycle_toasts))
     Toast.makeText(
             tvInputProvider.getApplicationContext(),
             "Unblocked " + unblockedRating.flattenToString(),
             Toast.LENGTH_SHORT)
         .show();
   notifyContentAllowed();
 }