Commit 9e55f032 authored by Mrunzzz's avatar Mrunzzz Committed by GitHub

Merge branch 'master' into createEventApi

parents 9729d642 ab656736
......@@ -2,7 +2,9 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/IITB-App.iml" filepath="$PROJECT_DIR$/IITB-App.iml" />
<module fileurl="file://$PROJECT_DIR$/IITBApp.iml" filepath="$PROJECT_DIR$/IITBApp.iml" />
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
</modules>
</component>
......
......@@ -179,11 +179,14 @@ public class MainActivity extends AppCompatActivity
updateFragment(timetableFragment);
break;
case R.id.nav_map:
MapFragment mapFragment = new MapFragment();
if (ContextCompat.checkSelfPermission(MainActivity.this,
Manifest.permission.ACCESS_FINE_LOCATION)
== PackageManager.PERMISSION_GRANTED) {
} else
updateFragment(mapFragment);
} else{
ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 0);
}
break;
case R.id.nav_contacts:
......
......@@ -35,7 +35,7 @@ public class MapFragment extends Fragment implements OnMapReadyCallback {
@Override
public void onMapReady(GoogleMap gMap) {
googleMap = gMap;
googleMap.setMyLocationEnabled(true);
// googleMap.setMyLocationEnabled(true);
googleMap.getUiSettings().setMyLocationButtonEnabled(false);
googleMap.getUiSettings().setZoomGesturesEnabled(true);
......
......@@ -18,8 +18,6 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:focusedMonthDateColor="#000000"
android:maxDate="01/01/2019"
android:minDate="01/01/2017"
android:unfocusedMonthDateColor="#FFFFFF" />
<View
......
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