mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-02-07 14:03:31 +01:00
Merge pull request #1359 from mfietz/issue/1358-itemlistfragment-delete-feed
ItemFragmentList: Exception when deleting current feed
This commit is contained in:
commit
02a7bf1d8a
@ -278,7 +278,7 @@ public class MainActivity extends ActionBarActivity implements NavDrawerActivity
|
||||
}
|
||||
}
|
||||
|
||||
public void loadFragment(final String tag, Bundle args) {
|
||||
public void loadFragment(String tag, Bundle args) {
|
||||
Log.d(TAG, "loadFragment(tag: " + tag + ", args: " + args + ")");
|
||||
Fragment fragment = null;
|
||||
switch (tag) {
|
||||
@ -299,7 +299,9 @@ public class MainActivity extends ActionBarActivity implements NavDrawerActivity
|
||||
break;
|
||||
default:
|
||||
// default to the queue
|
||||
tag = QueueFragment.TAG;
|
||||
fragment = new QueueFragment();
|
||||
args = null;
|
||||
break;
|
||||
}
|
||||
currentTitle = navAdapter.getLabel(tag);
|
||||
|
@ -274,7 +274,7 @@ public class ItemlistFragment extends ListFragment {
|
||||
@Override
|
||||
protected void onPostExecute(Void result) {
|
||||
super.onPostExecute(result);
|
||||
((MainActivity) getActivity()).loadFragment(NewEpisodesFragment.TAG, null);
|
||||
((MainActivity) getActivity()).loadFragment(EpisodesFragment.TAG, null);
|
||||
}
|
||||
};
|
||||
ConfirmationDialog conDialog = new ConfirmationDialog(getActivity(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user