Adding SecondaryDisplayLauncher in Launcher using common listener
Bug: 141596722 Change-Id: I480bfadf592f7d0309f17c33a3fe14bb77fb5586
This commit is contained in:
@@ -128,8 +128,10 @@ public class DefaultDisplay implements DisplayListener {
|
||||
public final DisplayMetrics metrics;
|
||||
|
||||
private Info(Context context) {
|
||||
Display display = context.getSystemService(WindowManager.class).getDefaultDisplay();
|
||||
this(context.getSystemService(WindowManager.class).getDefaultDisplay());
|
||||
}
|
||||
|
||||
public Info(Display display) {
|
||||
id = display.getDisplayId();
|
||||
rotation = display.getRotation();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user