am de005547
: Merge "Bail if activity was destroyed." into mnc-dr-dev
* commit 'de005547bae3799265fdad8f61720a82241f4b07': Bail if activity was destroyed.
This commit is contained in:
@@ -137,6 +137,10 @@ public class StorageWizardFormatProgress extends StorageWizardBase {
|
||||
@Override
|
||||
protected void onPostExecute(Exception e) {
|
||||
final StorageWizardFormatProgress activity = mActivity;
|
||||
if (activity.isDestroyed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (e != null) {
|
||||
Log.e(TAG, "Failed to partition", e);
|
||||
Toast.makeText(activity, e.getMessage(), Toast.LENGTH_LONG).show();
|
||||
|
Reference in New Issue
Block a user