Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Bumping up sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
anksh committed Feb 19, 2016
1 parent 05d9ea2 commit 617416c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ android {

defaultConfig {
applicationId "org.mhacks.android"
minSdkVersion 15
minSdkVersion 17
targetSdkVersion 23
versionCode((int) (System.currentTimeMillis() / 1000))
versionName "6.0.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.app.Fragment;
import android.app.FragmentManager;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
Expand Down Expand Up @@ -164,7 +165,9 @@ public void onMapReady(GoogleMap map){

gMap.getUiSettings().setMyLocationButtonEnabled(true);
//TODO: stop it from complaining about disabled permissions
gMap.setMyLocationEnabled(true);
if(Build.VERSION.SDK_INT <= Build.VERSION_CODES.LOLLIPOP) {
gMap.setMyLocationEnabled(true);
}
}

@Override
Expand Down

0 comments on commit 617416c

Please sign in to comment.