Skip to content

Commit

Permalink
Merge pull request #13 from Refactor4Green/Refactor4Green
Browse files Browse the repository at this point in the history
Improve energy efficiency by applying Cache Energy Pattern
  • Loading branch information
k3b authored Aug 22, 2021
2 parents 1be5a30 + 03dc7ea commit 264f208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/name/gdr/acastus_photon/GeoLocation.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void updateLocation(){
Criteria criteria = new Criteria();
String bestProvider = String.valueOf(locationManager.getBestProvider(criteria, true)).toString();
try {
locationManager.requestLocationUpdates(bestProvider, 60000, 15, this);
locationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 60000, 15, this);
Handler h = new Handler(Looper.getMainLooper());
h.post(new Runnable() {
public void run() {
Expand Down

0 comments on commit 264f208

Please sign in to comment.