Skip to content

Commit 109f559

Browse files
cjybyjkOhMyVenyx
authored andcommitted
SystemUI: Export RecordingService for External Usage
Signed-off-by: cjybyjk <cjybyjk@zjnu.edu.cn> [nullxception: simplify start handling and adapt it to 12L] Signed-off-by: Nauval Rizky <enuma.alrizky@gmail.com> Signed-off-by: Rahmad Adi Pratama <OhMyVenyx@proton.me>
1 parent 02a4ef7 commit 109f559

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/SystemUI/src/com/android/systemui/screenrecord/RecordingService.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@ public int onStartCommand(Intent intent, int flags, int startId) {
221221
// Close quick shade
222222
sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));
223223
break;
224+
case ACTION_SHOW_DIALOG:
225+
if (mController != null) {
226+
mController.createScreenRecordDialog(this, null).show();
227+
}
228+
break;
224229
case ACTION_DELETE:
225230
// Close quick shade
226231
sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));

0 commit comments

Comments
 (0)