SmartSelection ConfigUpdater: Ignore version numbers

These model files are updated when the user changes the device
language. When this happens, there is no guarantee that the new model
file (e.g. in English) has a higher version number than the old model
file (e.g. in Italian).

Test: none
Bug: 34780396
Change-Id: Ida70c5cd85fe246d4085a299711ad8838dafa1e9
This commit is contained in:
Abodunrinwa Toki
2017-04-19 22:00:34 +01:00
parent 06a53d4729
commit 78b6a561f4
2 changed files with 6 additions and 2 deletions

View File

@@ -162,7 +162,7 @@ public class ConfigUpdateInstallReceiver extends BroadcastReceiver {
}
}
private boolean verifyVersion(int current, int alternative) {
protected boolean verifyVersion(int current, int alternative) {
return (current < alternative);
}

View File

@@ -25,5 +25,9 @@ public class SmartSelectionInstallReceiver extends ConfigUpdateInstallReceiver {
"metadata/smartselection",
"version");
}
}
@Override
protected boolean verifyVersion(int current, int alternative) {
return true;
}
}