Prevent NPE
This commit is contained in:
parent
1c755ce65a
commit
57ca4b8c9f
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ public class OptionsBottomSheetDialogFragment extends BottomSheetDialogFragment
|
|||
public void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
Bundle args = getArguments();
|
||||
showSortBy = args.getBoolean(SHOW_SORT_BY_ROW, true);
|
||||
showMoveAllToHistory = args.getBoolean(SHOW_MOVE_ALL_TO_HISTORY_ROW, true);
|
||||
showSortBy = args == null || args.getBoolean(SHOW_SORT_BY_ROW, true);
|
||||
showMoveAllToHistory = args == null || args.getBoolean(SHOW_MOVE_ALL_TO_HISTORY_ROW, true);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
|
Loading…
Reference in a new issue