Merge pull request #1738 from runnerway/storage-permission-fix
Always check read permission
This commit is contained in:
commit
82c3426c6f
|
@ -330,9 +330,16 @@ public class ImportKeysListFragment extends ListFragment implements
|
||||||
}
|
}
|
||||||
|
|
||||||
public void loadNew(LoaderState loaderState) {
|
public void loadNew(LoaderState loaderState) {
|
||||||
|
|
||||||
mLoaderState = loaderState;
|
mLoaderState = loaderState;
|
||||||
|
|
||||||
|
if (mLoaderState instanceof BytesLoaderState) {
|
||||||
|
BytesLoaderState ls = (BytesLoaderState) mLoaderState;
|
||||||
|
|
||||||
|
if ( ! checkAndRequestReadPermission(ls.mDataUri)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
restartLoaders();
|
restartLoaders();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue