Handle the interruption of the permission request
This commit is contained in:
parent
291509580c
commit
9bb7b295d9
1 changed files with 32 additions and 30 deletions
|
@ -1660,6 +1660,7 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull final int[] grantResults) {
|
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull final int[] grantResults) {
|
||||||
|
if (grantResults.length > 0) {
|
||||||
OsmandPlugin.onRequestPermissionsResult(requestCode, permissions, grantResults);
|
OsmandPlugin.onRequestPermissionsResult(requestCode, permissions, grantResults);
|
||||||
|
|
||||||
MapControlsLayer mcl = mapView.getLayerByClass(MapControlsLayer.class);
|
MapControlsLayer mcl = mapView.getLayerByClass(MapControlsLayer.class);
|
||||||
|
@ -1696,6 +1697,7 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
|
||||||
}
|
}
|
||||||
}, 1);
|
}, 1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
|
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue