@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(); } }
@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); } } }
@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(); } }
@Override public void setupBroadcastActions(List<String> actions) { super.setupBroadcastActions(actions); actions.add(BroadcastActions.ACTION_FINISH_ACITIVTY_BEFORE_MAIN); }