Commit c6037419 authored by Geoffrey Métais's avatar Geoffrey Métais

Check context validity while browsing

parent d6c964c1
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment