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 + ")");
|
Log.d(TAG, "loadFragment(tag: " + tag + ", args: " + args + ")");
|
||||||
Fragment fragment = null;
|
Fragment fragment = null;
|
||||||
switch (tag) {
|
switch (tag) {
|
||||||
@ -299,7 +299,9 @@ public class MainActivity extends ActionBarActivity implements NavDrawerActivity
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// default to the queue
|
// default to the queue
|
||||||
|
tag = QueueFragment.TAG;
|
||||||
fragment = new QueueFragment();
|
fragment = new QueueFragment();
|
||||||
|
args = null;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
currentTitle = navAdapter.getLabel(tag);
|
currentTitle = navAdapter.getLabel(tag);
|
||||||
|
@ -274,7 +274,7 @@ public class ItemlistFragment extends ListFragment {
|
|||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(Void result) {
|
protected void onPostExecute(Void result) {
|
||||||
super.onPostExecute(result);
|
super.onPostExecute(result);
|
||||||
((MainActivity) getActivity()).loadFragment(NewEpisodesFragment.TAG, null);
|
((MainActivity) getActivity()).loadFragment(EpisodesFragment.TAG, null);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
ConfirmationDialog conDialog = new ConfirmationDialog(getActivity(),
|
ConfirmationDialog conDialog = new ConfirmationDialog(getActivity(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user