Example #1
0
 @Override
 public void handleBroadcast(Context context, Intent intent) {
   super.handleBroadcast(context, intent);
   String action = intent.getAction();
   if (TextUtils.equals(action, BroadcastActions.ACTION_FINISH_ACITIVTY_BEFORE_MAIN)) {
     finish();
   }
 }
Example #2
0
 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   super.onActivityResult(requestCode, resultCode, data);
   if (resultCode == RESULT_CODE) {
     Bitmap bitmap = data.getParcelableExtra("bitmap_result");
     if (bitmap != null) {
       mRivAvator.setImageBitmap(bitmap);
     }
   }
 }
Example #3
0
 @Override
 protected void hideDialog() {
   super.hideDialog();
   if (mBirthdayDialog != null) {
     mBirthdayDialog.dismiss();
   }
   if (mNameDialog != null) {
     mNameDialog.dismiss();
   }
   if (mSexDialog != null) {
     mSexDialog.dismiss();
   }
   if (mShoeSizeDialog != null) {
     mShoeSizeDialog.dismiss();
   }
 }
Example #4
0
 @Override
 public void setupBroadcastActions(List<String> actions) {
   super.setupBroadcastActions(actions);
   actions.add(BroadcastActions.ACTION_FINISH_ACITIVTY_BEFORE_MAIN);
 }