Add default value to inline payloads
If we try to set an inline result when it has not yet been accessed in settings, nothing is read from Settings. Thus, include a default value for a fallback. Change-Id: I8a593d9ff3308b2d0cd5bc65658d160abf55b07e Fixes: 63955012 Test: robotests
This commit is contained in:
@@ -132,7 +132,6 @@ public class LocationPreferenceController extends PreferenceController implement
|
||||
|
||||
return new InlineListPayload(Secure.LOCATION_MODE,
|
||||
ResultPayload.SettingsSource.SECURE, intent, isAvailable(),
|
||||
Secure.LOCATION_MODE_HIGH_ACCURACY + 1);
|
||||
Secure.LOCATION_MODE_HIGH_ACCURACY + 1, Secure.LOCATION_MODE_OFF);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user