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

Check context validity while browsing

(cherry picked from commit c6037419)
parent 23129265
......@@ -110,10 +110,10 @@ public class FileBrowserFragment extends BaseBrowserFragment {
directory = new MediaWrapper(AndroidUtil.PathToUri(mediaDirLocation));
if (TextUtils.equals(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY, mediaDirLocation))
mAdapter.addItem(directory, false, false);
if (mReadyToDisplay) {
if (mReadyToDisplay && context != null) {
context.runOnUiThread(new Runnable() {
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