Skip to content
Snippets Groups Projects
Commit c6037419 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Check context validity while browsing

parent d6c964c1
No related branches found
No related tags found
No related merge requests found
......@@ -110,10 +110,10 @@ public class FileBrowserFragment extends BaseBrowserFragment {
directory = new MediaWrapper(AndroidUtil.PathToUri(mediaDirLocation));
directory.setType(MediaWrapper.TYPE_DIR);
if (TextUtils.equals(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY, mediaDirLocation))
directory.setDisplayTitle(getString(R.string.internal_memory));
directory.setDisplayTitle(VLCApplication.getAppResources().getString(R.string.internal_memory));
mAdapter.addItem(directory, false, false);
}
if (mReadyToDisplay) {
if (mReadyToDisplay && context != null) {
context.runOnUiThread(new Runnable() {
@Override
public void run() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment