Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
InstiApp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
RAHUL SHARMA
InstiApp
Commits
c2d729ee
Commit
c2d729ee
authored
Jan 14, 2018
by
Owais Chunawala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solved the map issue
parent
b2f304b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
.idea/modules.xml
.idea/modules.xml
+0
-2
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/MainActivity.java
...c/main/java/in/ac/iitb/gymkhana/iitbapp/MainActivity.java
+4
-1
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/MapFragment.java
...ava/in/ac/iitb/gymkhana/iitbapp/fragment/MapFragment.java
+1
-1
No files found.
.idea/modules.xml
View file @
c2d729ee
...
...
@@ -2,11 +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$/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"
/>
<module
fileurl=
"file://$PROJECT_DIR$/app/app.iml"
filepath=
"$PROJECT_DIR$/app/app.iml"
/>
</modules>
</component>
</project>
\ No newline at end of file
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/MainActivity.java
View file @
c2d729ee
...
...
@@ -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
:
...
...
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/MapFragment.java
View file @
c2d729ee
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment