Handle the interruption of the permission request

This commit is contained in:
Alexander Sytnyk 2018-02-08 12:45:27 +02:00
parent 291509580c
commit 9bb7b295d9

View file

@ -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);
} }