Skip to content

Commit

Permalink
Show Home if savedGame List is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Flip committed Apr 26, 2017
1 parent 9263064 commit 9da234d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,

// Set the adapter
if (view instanceof RecyclerView) {
Context context = view.getContext();
RecyclerView recyclerView = (RecyclerView) view;

//sorted by fastest time
Expand All @@ -58,6 +57,8 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
Toast toast = Toast.makeText(getContext(), "Keine Einträge vorhanden", Toast.LENGTH_SHORT);
toast.setGravity(Gravity.CENTER,0,0);
toast.show();

getFragmentManager().popBackStack();
}

recyclerView.setAdapter(new SavegameRecyclerViewAdapter(savegameContent, mListener));
Expand Down

0 comments on commit 9da234d

Please sign in to comment.