Esempio n. 1
0
 protected final void zza(View view, int i, CustomViewCallback customViewCallback) {
   zzd zzgQ = this.zzoL.zzgQ();
   if (zzgQ == null) {
     zzb.zzaE("Could not get ad overlay when showing custom view.");
     customViewCallback.onCustomViewHidden();
     return;
   }
   zzgQ.zza(view, customViewCallback);
   zzgQ.setRequestedOrientation(i);
 }
    @Override
    public void onShowCustomView(View view, CustomViewCallback callback) {

      if (mCustomView != null) {
        callback.onCustomViewHidden();
        return;
      }

      mCustomView = view;
      mWebContent.setVisibility(View.GONE);
      customViewContainer.setVisibility(View.VISIBLE);
      customViewContainer.addView(view);
      customViewCallback = callback;
    }
Esempio n. 3
0
    public void onShowCustomView(View var1, CustomViewCallback var2) {
      if (VERSION.SDK_INT >= 14) {
        if (CRWebViewFragment.this.mCustomView != null) {
          var2.onCustomViewHidden();
          return;
        }

        this.mOriginalOrientation = this.mActivity.getRequestedOrientation();
        FrameLayout var3 = (FrameLayout) this.mActivity.getWindow().getDecorView();
        this.mFullscreenContainer = new CRWebViewFragment.FullscreenHolder(this.mActivity);
        this.mFullscreenContainer.addView(var1, this.COVER_SCREEN_PARAMS);
        var3.addView(this.mFullscreenContainer, this.COVER_SCREEN_PARAMS);
        CRWebViewFragment.this.mCustomView = var1;
        this.setFullscreen(true);
        CRWebViewFragment.this.mCustomViewCallback = var2;
      }

      super.onShowCustomView(var1, var2);
    }