Fix IllegalStateException in ViewKeyShareFragment

This commit is contained in:
Dominik Schürmann 2014-10-02 12:43:18 +02:00
parent a125b51b1c
commit 6da367e469

View File

@ -408,6 +408,8 @@ public class ViewKeyShareFragment extends LoaderFragment implements
}
protected void onPostExecute(Bitmap qrCode) {
// only change view, if fragment is attached to activity
if (ViewKeyShareFragment.this.isAdded()) {
mFingerprintQrCode.setImageBitmap(qrCode);
// Transition drawable with a transparent drawable and the final bitmap
@ -420,6 +422,7 @@ public class ViewKeyShareFragment extends LoaderFragment implements
mFingerprintQrCode.setImageDrawable(td);
td.startTransition(200);
}
}
};
loadTask.execute();