location: Update available accuracy on max accuracy changing
We translate 'On' to available accuracy level but if available accuracy level later changes, we don't update available accuracy level accordingly and hence limit the accuracy of apps. E.g if available accuracy level is 'city' and geolocation is enabled, the max accuracy level would be 'city' and apps can't get higher than that. Now if user plugs in GPS, the available accuracy level will change to 'exact' but without this patch max accuracy level will remain to be 'city' and apps will not be able to use the GPS. https://bugzilla.gnome.org/show_bug.cgi?id=731882
This commit is contained in:
parent
c768ee6175
commit
5a8a293614
@ -191,8 +191,12 @@ const Indicator = new Lang.Class({
|
||||
let unpacked = properties.deep_unpack();
|
||||
if ("InUse" in unpacked)
|
||||
this._syncIndicator();
|
||||
if ("AvailableAccuracyLevel" in unpacked)
|
||||
if ("AvailableAccuracyLevel" in unpacked) {
|
||||
this._availableAccuracyLevel = this._proxy.AvailableAccuracyLevel;
|
||||
|
||||
if (this._getMaxAccuracyLevel() != 0)
|
||||
this._settings.set_enum(MAX_ACCURACY_LEVEL, this._availableAccuracyLevel);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user