mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Removing support for adding legacy shortcuts.
All existing legacy shortcuts will be migrated one-time to deep shortcuts This shortcuts are pinned under the Launcher package, with custom badging Bug: 275875209 Test: Updated unit tests Flag: N/A Change-Id: I7da001f724776ad8d6c807517b7e4e259de626c2
This commit is contained in:
@@ -72,8 +72,18 @@ public class DbDowngradeHelper {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a helper from the provided file
|
||||
*/
|
||||
public static DbDowngradeHelper parse(File file) throws JSONException, IOException {
|
||||
JSONObject obj = new JSONObject(new String(IOUtils.toByteArray(file)));
|
||||
return parse(IOUtils.toByteArray(file));
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a helper from the provided bytes
|
||||
*/
|
||||
public static DbDowngradeHelper parse(byte[] fileData) throws JSONException {
|
||||
JSONObject obj = new JSONObject(new String(fileData));
|
||||
DbDowngradeHelper helper = new DbDowngradeHelper(obj.getInt(KEY_VERSION));
|
||||
for (int version = helper.version - 1; version > 0; version--) {
|
||||
if (obj.has(KEY_DOWNGRADE_TO + version)) {
|
||||
|
||||
Reference in New Issue
Block a user