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:
@@ -437,9 +437,7 @@ public interface ActivityContext {
|
||||
StrictMode.setVmPolicy(oldPolicy);
|
||||
}
|
||||
} catch (SecurityException e) {
|
||||
if (!onErrorStartingShortcut(intent, info)) {
|
||||
throw e;
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -459,16 +457,6 @@ public interface ActivityContext {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Invoked when a shortcut fails to launch.
|
||||
* @param intent Shortcut intent that failed to start.
|
||||
* @param info Shortcut information.
|
||||
* @return {@code true} if the error is handled by this callback.
|
||||
*/
|
||||
default boolean onErrorStartingShortcut(Intent intent, ItemInfo info) {
|
||||
return false;
|
||||
}
|
||||
|
||||
default CellPosMapper getCellPosMapper() {
|
||||
return CellPosMapper.DEFAULT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user