Commit 3872c652 authored by Sajal Narang's avatar Sajal Narang
parents 47c04734 d246e40a
......@@ -31,7 +31,7 @@ Read the [Development Documentation](https://iitbapp1.docs.apiary.io/).
See the [Frontend Design](https://drive.google.com/open?id=1YJRUvsyqR5QtfWYug_PoBJ08p-criCPo).
### Contributors
See [list of contributors](https://github.com/unstablebrainiac/InstiApp/graphs/contributors)
See [list of contributors](https://github.com/wncc/InstiApp/graphs/contributors)
Release
-------
......
......@@ -3,8 +3,6 @@
package="app.insti">
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
......
......@@ -250,13 +250,7 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
break;
case R.id.nav_map:
MapFragment mapFragment = new MapFragment();
if (ContextCompat.checkSelfPermission(MainActivity.this,
Manifest.permission.ACCESS_FINE_LOCATION)
== PackageManager.PERMISSION_GRANTED) {
updateFragment(mapFragment);
} else {
ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, MY_PERMISSIONS_REQUEST_ACCESS_LOCATION);
}
break;
case R.id.nav_settings:
......
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