Skip to content

Instantly share code, notes, and snippets.

View apkelly's full-sized avatar

Andrew Kelly apkelly

View GitHub Profile
@apkelly
apkelly / AbstractActivity.java
Last active June 20, 2016 07:34
Handle IllegalStateException as a result of DialogFragment.show()
public abstract class AbstractActivity extends Activity {
private Map<String, Bundle> dialogs = new HashMap<String, Bundle>();
private boolean activityPaused = true;
@Override
public void onResume() {
super.onResume();