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