Exemple #1
0
 protected void onNewIntent(Intent intent) {
   super.onNewIntent(intent);
   this.f4685D = UiMode.m7254a(intent.getStringExtra("extra_ui_mode"));
   this.f4686E = EndMode.m7253a(intent.getStringExtra("extra_end_mode"));
   this.f4687F = intent.getBooleanExtra("extra_call_out", false);
   m7136q();
 }
Exemple #2
0
 protected void onStop() {
   super.onStop();
   if (this.f4685D != UiMode.ENDED) {
     NotificationCenter.m6606a().m6618d(this.f4710r.getText() + "");
   }
   if (this.f4703V.isHeld()) {
     this.f4703V.release();
   }
 }
Exemple #3
0
 protected void onDestroy() {
   super.onDestroy();
   this.f4695N.abandonAudioFocus(null);
   setVolumeControlStream(this.f4694M);
   if (this.f4698Q != null) {
     this.f4698Q.cancel();
     this.f4698Q.purge();
     this.f4698Q = null;
   }
   m7139t();
   m7138s();
 }
Exemple #4
0
 public void onPause() {
   super.onPause();
 }
Exemple #5
0
 protected void onResume() {
   NotificationCenter.m6606a().m6627i();
   super.onResume();
 }
Exemple #6
0
 protected void onCreate(Bundle bundle) {
   CharSequence e;
   super.onCreate(bundle);
   getWindow().addFlags(524288);
   getWindow().addFlags(2097152);
   setContentView(2130903069);
   ButterKnife.m7741a((Activity) this);
   this.f4695N = (AudioManager) getSystemService("audio");
   this.f4705X = (Vibrator) getSystemService("vibrator");
   if (this.f4695N.requestAudioFocus(null, 3, 2) == 1) {
     Main.f1926a.m5683d("Gained Audio Focus");
   }
   this.f4692K = new Handler(Looper.getMainLooper());
   this.f4698Q = new Timer();
   this.f4688G = JabberId.m7386a(getIntent().getStringExtra("extra_jabber_id"));
   if (this.f4688G == null) {
     finish();
   }
   this.f4694M = getVolumeControlStream();
   ContactEntity b = ContactDataSource.m4553a().m4570b(this.f4688G.m7387a());
   if (b != null) {
     e = b.m4196e();
     if (b.m4212o() != null) {
       CustomImageLoader.m4009a().m4020a(this.f4709q, b.m4212o(), null, 2130837596);
     } else if (b.m4211n() != null) {
       Bitmap a = AddressBookHelper.m3940a(getContentResolver(), Uri.parse(b.m4211n()), true);
       if (a != null) {
         this.f4709q.setImageBitmap(a);
       } else {
         this.f4709q.setImageDrawable(getResources().getDrawable(2130837596));
       }
     }
   } else {
     e = null;
   }
   if (e == null) {
     this.f4710r.setText(XMPPUtils.m7089a(this.f4688G));
     this.f4711s.setText(null);
   } else {
     this.f4710r.setText(e);
     this.f4711s.setText(XMPPUtils.m7089a(this.f4688G));
   }
   this.f4713u.setVisibility(4);
   this.f4685D = UiMode.m7254a(getIntent().getStringExtra("extra_ui_mode"));
   this.f4686E = EndMode.m7253a(getIntent().getStringExtra("extra_end_mode"));
   this.f4687F = getIntent().getBooleanExtra("extra_call_out", false);
   switch (C05133.f4679a[this.f4685D.ordinal()]) {
     case C1128R.styleable.StickyListHeadersListView_android_padding /*1*/:
     case C1128R.styleable.StickyListHeadersListView_android_paddingLeft /*2*/:
       m7136q();
       this.f4700S = (SensorManager) getSystemService("sensor");
       this.f4701T = this.f4700S.getDefaultSensor(8);
       this.f4702U = (PowerManager) getSystemService("power");
       try {
         this.f4704W =
             PowerManager.class.getClass().getField("PROXIMITY_SCREEN_OFF_WAKE_LOCK").getInt(null);
       } catch (Throwable th) {
       }
       this.f4703V = this.f4702U.newWakeLock(this.f4704W, "com.bistalk.bisphone");
     default:
       finish();
   }
 }