Fix a typo in AndroidManifest.xml

And some drive-by clean up.

Change-Id: Ic036f8f5bec8064a5d55e0e032ce45e483323b14
Fixes: 78889604
Test: atest
This commit is contained in:
Fan Zhang
2018-05-09 17:33:19 -07:00
parent 9a1d318b37
commit 66156d68e7
5 changed files with 82 additions and 23 deletions

View File

@@ -50,7 +50,7 @@ public interface DeviceIndexFeatureProvider {
if (!isIndexingEnabled()) return;
if (!force && Objects.equals(
Settings.Secure.getString(context.getContentResolver(), INDEX_VERSION), VERSION)) {
Settings.Secure.getString(context.getContentResolver(), INDEX_VERSION), VERSION)) {
// No need to update.
return;
}
@@ -70,11 +70,10 @@ public interface DeviceIndexFeatureProvider {
Settings.Secure.putString(context.getContentResolver(), INDEX_VERSION, VERSION);
}
static String createDeepLink(String s) {
static Uri createDeepLink(String s) {
return new Uri.Builder().scheme(SETTINGS)
.authority(SettingsSliceProvider.SLICE_AUTHORITY)
.appendQueryParameter(INTENT, s)
.build()
.toString();
.build();
}
}