mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-20 06:54:19 +01:00
Add shortcut to expand/collapse notification panel
Use Ctrl+n to expand, Ctrl+Shift+n to collapse. Fixes <https://github.com/Genymobile/scrcpy/issues/392>
This commit is contained in:
@@ -14,6 +14,7 @@ public final class ServiceManager {
|
||||
private DisplayManager displayManager;
|
||||
private InputManager inputManager;
|
||||
private PowerManager powerManager;
|
||||
private StatusBarManager statusBarManager;
|
||||
|
||||
public ServiceManager() {
|
||||
try {
|
||||
@@ -60,4 +61,11 @@ public final class ServiceManager {
|
||||
}
|
||||
return powerManager;
|
||||
}
|
||||
|
||||
public StatusBarManager getStatusBarManager() {
|
||||
if (statusBarManager == null) {
|
||||
statusBarManager = new StatusBarManager(getService("statusbar", "com.android.internal.statusbar.IStatusBarService"));
|
||||
}
|
||||
return statusBarManager;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user