private void o()
 {
   if (!a()) {
     ChromeCastPlayerNotificationHelper.a().j();
   }
   label107:
   do
   {
     return;
     if (!e)
     {
       if (f)
       {
         if (ac.a() >= 8)
         {
           new ao(m).a("resume");
           if (ac.a() >= 14) {
             m.seekTo(t);
           }
           if (com.estrongs.android.pop.view.a.a.startsWith("Spreadtrum"))
           {
             if (!j) {
               break label107;
             }
             u();
           }
         }
         for (;;)
         {
           f = false;
           t = 0;
           return;
           c = true;
           continue;
           u();
         }
       }
       if (g)
       {
         t = 0;
         g = false;
         return;
       }
       r();
       return;
     }
   } while (!e);
   r();
   t = 0;
   e = false;
 }
 private void q()
 {
   for (;;)
   {
     try
     {
       if ((ac.a() >= 8) && (h != null))
       {
         bool = i.booleanValue();
         if (bool) {
           continue;
         }
       }
     }
     catch (Exception localException)
     {
       continue;
       boolean bool = false;
       continue;
     }
     finally {}
     return;
     synchronized (V)
     {
       if (i.booleanValue())
       {
         if (h.b()) {
           continue;
         }
         bool = true;
         i = Boolean.valueOf(bool);
       }
     }
   }
 }
 private void p()
 {
   for (;;)
   {
     try
     {
       int i1 = ac.a();
       if (i1 >= 8) {
         continue;
       }
     }
     catch (Exception localException)
     {
       continue;
     }
     finally {}
     return;
     if (h == null) {
       h = new m(this, null);
     }
     synchronized (V)
     {
       if (!i.booleanValue()) {
         i = Boolean.valueOf(h.a());
       }
     }
   }
 }
 public void onCreate(Bundle paramBundle)
 {
   super.onCreate(paramBundle);
   setDefaultKeyMode(2);
   getWindow().setFlags(2000, 1024);
   setContentView(2130903380);
   p = new kl(this, this);
   m = ((ESVideoView)findViewById(2131625376));
   o = ((FrameLayout)findViewById(2131625377));
   o.setOnClickListener(new km(this));
   D = ((TextView)findViewById(2131625378));
   D.setText(getString(2131232491) + getString(2131231155));
   m.setMediaController(p);
   try
   {
     p.setEnabled(false);
     p.requestFocus();
     m.setOnCompletionListener(new kn(this));
     m.setOnErrorListener(new ko(this));
     m.setOnPreparedListener(new jh(this));
     m.setSeekListener(new ji(this));
     u = getIntent().getData();
     if ((ac.a() < 8) && (e())) {
       finish();
     }
     for (;;)
     {
       return;
       t = 0;
       g = false;
       if (com.estrongs.android.pop.view.a.a.startsWith("Spreadtrum")) {}
       try
       {
         registerReceiver(K, new IntentFilter("android.intent.action.SCREEN_OFF"));
         registerReceiver(L, new IntentFilter("android.intent.action.USER_PRESENT"));
         registerReceiver(M, new IntentFilter("android.intent.action.ACTION_SHUTDOWN"));
         b = findViewById(2131624351);
         w = c.a(this);
         if (!getIntent().getBooleanExtra("islocalopen", false)) {}
         try
         {
           w.d("act3");
           w.a("act3", "video_player");
           x = findViewById(2131625379);
           y = ((TextView)x.findViewById(2131625380));
           paramBundle = getIntent().getData();
           v = a(paramBundle);
           if (v != null) {
             y.setText(ap.d(v));
           }
           View localView = x;
           if (p.isShown())
           {
             i1 = 0;
             localView.setVisibility(i1);
             d = x.findViewById(2131625031);
             d.setOnClickListener(new jj(this));
             z = findViewById(2131624418);
             z.setOnClickListener(new jk(this));
             findViewById(2131625030).setOnClickListener(new jl(this));
             m.setVideoURI(paramBundle);
             if (n) {
               continue;
             }
             if (!getIntent().getBooleanExtra("Chromecast", false)) {
               break label648;
             }
             h();
             if (getIntent().getStringExtra("ChromecastUrl") != null) {
               a(true);
             }
             if (!a()) {
               continue;
             }
             if (!p.isShown()) {
               f();
             }
             new jm(this).start();
             return;
           }
         }
         catch (Exception paramBundle)
         {
           for (;;)
           {
             paramBundle.printStackTrace();
             continue;
             int i1 = 4;
             continue;
             label648:
             p();
             r();
           }
         }
       }
       catch (Exception paramBundle)
       {
         for (;;) {}
       }
     }
   }
   catch (Exception paramBundle)
   {
     for (;;) {}
   }
 }