mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Use Launcher.getLauncher(Context) instead of type-casting.
Bug: 32010039 Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
This commit is contained in:
@@ -204,7 +204,7 @@ public class FocusHelper {
|
||||
return consume;
|
||||
}
|
||||
|
||||
final Launcher launcher = (Launcher) v.getContext();
|
||||
final Launcher launcher = Launcher.getLauncher(v.getContext());
|
||||
final DeviceProfile profile = launcher.getDeviceProfile();
|
||||
|
||||
if (DEBUG) {
|
||||
@@ -341,7 +341,7 @@ public class FocusHelper {
|
||||
return consume;
|
||||
}
|
||||
|
||||
Launcher launcher = (Launcher) v.getContext();
|
||||
Launcher launcher = Launcher.getLauncher(v.getContext());
|
||||
DeviceProfile profile = launcher.getDeviceProfile();
|
||||
|
||||
if (DEBUG) {
|
||||
|
||||
Reference in New Issue
Block a user