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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,5 +25,9 @@ public class SmartSelectionInstallReceiver extends ConfigUpdateInstallReceiver {
|
||||
"metadata/smartselection",
|
||||
"version");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean verifyVersion(int current, int alternative) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user