Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86595f91 authored by Dan Elkouby's avatar Dan Elkouby Committed by Steve Kondik
Browse files

TwilightService: always fall back to timezone-based location

This allows using LiveDisplay when all location services are disabled.

Change-Id: I988656c323a759c15f2cafd2b9d73dba60e93d75
parent 9547f284
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -309,6 +309,13 @@ public final class TwilightService extends SystemService {
                        }
                        sendEmptyMessageDelayed(MSG_ENABLE_LOCATION_UPDATES, mLastUpdateInterval);
                    }

                    if (!networkLocationEnabled && mLocation == null) {
                        if (DEBUG) {
                            Slog.d(TAG, "Network location unavailable");
                        }
                        retrieveLocation();
                    }
                    break;

                case MSG_DO_TWILIGHT_UPDATE: