Fix warning on compilation

This commit is contained in:
Synced Synapse 2015-04-23 19:26:12 +01:00
parent 3d020ceccf
commit e4e7f66e36
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ public class MediaFileListFragment extends Fragment {
super.onSaveInstanceState(outState);
outState.putString(MEDIA_TYPE, mediaType);
try {
outState.putParcelableArrayList(PATH_CONTENTS, (ArrayList) adapter.getFileItemList());
outState.putParcelableArrayList(PATH_CONTENTS, (ArrayList<FileLocation>)adapter.getFileItemList());
} catch (NullPointerException npe) {
// adapter is null probably nothing was save in bundle because the directory is empty
// ignore this so that the empty message would display later on