Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Supacheep Hutaphad, Ton
react-native-location-switch
Merge requests
!2
Feature/test
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Supacheep Hutaphad, Ton
requested to merge
feature/test
into
master
5 years ago
Overview
0
Commits
2
Pipelines
0
Changes
1
0
0
Compare
master
master (base)
and
latest version
latest version
9a7e0b87
2 commits,
5 years ago
1 file
+
0
−
14
Expand all files
Preferences
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
android/src/main/java/org/pweitz/reactnative/locationswitch/LocationSwitch.java
+
0
−
14
Options
View file @ 9a7e0b87
Edit in single-file editor
Open in Web IDE
Show full file
@@ -75,26 +75,12 @@ public class LocationSwitch {
public
void
displayLocationSettingsRequest
(
final
Activity
activity
,
final
ReactApplicationContext
reactContext
)
{
// GoogleApiClient googleApiClient = new GoogleApiClient.Builder(activity)
// .addApi(LocationServices.API).build();
// googleApiClient.connect();
LocationRequest
locationRequest
=
LocationRequest
.
create
();
locationRequest
.
setPriority
(
mAccuracy
);
locationRequest
.
setInterval
(
mInterval
);
locationRequest
.
setFastestInterval
(
mInterval
/
2
);
// LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder()
// .addLocationRequest(locationRequest);
// builder.setAlwaysShow(false);
//
// builder.addLocationRequest(mLocationRequest);
// LocationSettingsRequest locationSettingsRequest = builder.build();
// final PendingResult<LocationSettingsResult> result =
// LocationServices.SettingsClient.checkLocationSettings(builder.build());
// result.setResultCallback(new LocationResultCallback(activity));
settingsClient
=
LocationServices
.
getSettingsClient
(
activity
);
try
{
LocationSettingsRequest
.
Builder
builder
=
new
LocationSettingsRequest
.
Builder
();
Menu
Explore
Projects
Groups
Topics
Snippets