Code example for FragmentActivity

Methods: onPause

0
    public void onPause() { 
 
        if (mPlayListPickerDialog != null && mPlayListPickerDialog.isShowing()) {
            mPlayListPickerDialog.dismiss();
        } 
        super.onPause(); 
    } 
 
    @Override 
    protected void onResume() { 
 
        super.onResume(); 
        if (mPlayListPickerDialog != null && !mPlayListPickerDialog.isShowing()) {
            mPlayListPickerDialog.show();
        } 
    } 
 
} 
Experience pair programming with AI  Get Codota for Java