Commits

Vincent Schüßler committed 0afe0b1

Fix #101: AddSubscriptionActivity crashes on rotation

  • Participants
  • Parent commits 5db1352

Comments (0)

Files changed (1)

src/net/x4a42/volksempfaenger/ui/AddSubscriptionActivity.java

 	}
 
 	@Override
-	public void onResume() {
-		super.onResume();
-		ExternalStorageHelper.assertExternalStorageWritable(this);
-	}
-
-	@Override
 	public boolean onOptionsItemSelected(MenuItem item) {
 		switch (item.getItemId()) {
 		default:
 		if (v.getId() == R.id.entry_search) {
 			if (hasFocus) {
 				showButton();
-				if (!isFinishing()) {
-					searchEntry.showDropDown();
-				}
+				searchEntry.post(new Runnable() {
+					@Override
+					public void run() {
+						searchEntry.showDropDown();
+					}
+				});
 			} else {
 				hideButton();
 			}