This commit is contained in:
Mariotaku Lee 2016-02-08 19:44:37 +08:00
parent 3e387cd1b3
commit cfc41d8554
1 changed files with 1 additions and 0 deletions

View File

@ -388,6 +388,7 @@ public abstract class AbsStatusesFragment<Data> extends AbsContentListRecyclerVi
if (mPopupMenu != null) { if (mPopupMenu != null) {
mPopupMenu.dismiss(); mPopupMenu.dismiss();
} }
if (getActivity() == null) return;
final AbsStatusesAdapter<Data> adapter = getAdapter(); final AbsStatusesAdapter<Data> adapter = getAdapter();
final PopupMenu popupMenu = new PopupMenu(adapter.getContext(), menuView, final PopupMenu popupMenu = new PopupMenu(adapter.getContext(), menuView,
Gravity.NO_GRAVITY, R.attr.actionOverflowMenuStyle, 0); Gravity.NO_GRAVITY, R.attr.actionOverflowMenuStyle, 0);