Loading core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -3128,4 +3128,7 @@ <!-- Class names of device specific services inheriting com.android.server.SystemService. The classes are instantiated in the order of the array. --> <string-array translatable="false" name="config_deviceSpecificSystemServices"></string-array> <!-- Component name of media projection permission dialog --> <string name="config_mediaProjectionPermissionDialogComponent" translateable="false">com.android.systemui/com.android.systemui.media.MediaProjectionPermissionActivity</string> </resources> core/res/res/values/symbols.xml +3 −0 Original line number Diff line number Diff line Loading @@ -3123,4 +3123,7 @@ <java-symbol type="string" name="shortcut_restore_not_supported" /> <java-symbol type="string" name="shortcut_restore_signature_mismatch" /> <java-symbol type="string" name="shortcut_restore_unknown_issue" /> <!-- From media projection --> <java-symbol type="string" name="config_mediaProjectionPermissionDialogComponent" /> </resources> media/java/android/media/projection/MediaProjectionManager.java +7 −2 Original line number Diff line number Diff line Loading @@ -20,8 +20,10 @@ import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.SystemService; import android.app.Activity; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.media.projection.IMediaProjection; import android.os.Handler; import android.os.IBinder; Loading Loading @@ -71,8 +73,11 @@ public final class MediaProjectionManager { */ public Intent createScreenCaptureIntent() { Intent i = new Intent(); i.setClassName("com.android.systemui", "com.android.systemui.media.MediaProjectionPermissionActivity"); final ComponentName mediaProjectionPermissionDialogComponent = ComponentName.unflattenFromString(mContext.getResources().getString( com.android.internal.R.string .config_mediaProjectionPermissionDialogComponent)); i.setComponent(mediaProjectionPermissionDialogComponent); return i; } Loading Loading
core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -3128,4 +3128,7 @@ <!-- Class names of device specific services inheriting com.android.server.SystemService. The classes are instantiated in the order of the array. --> <string-array translatable="false" name="config_deviceSpecificSystemServices"></string-array> <!-- Component name of media projection permission dialog --> <string name="config_mediaProjectionPermissionDialogComponent" translateable="false">com.android.systemui/com.android.systemui.media.MediaProjectionPermissionActivity</string> </resources>
core/res/res/values/symbols.xml +3 −0 Original line number Diff line number Diff line Loading @@ -3123,4 +3123,7 @@ <java-symbol type="string" name="shortcut_restore_not_supported" /> <java-symbol type="string" name="shortcut_restore_signature_mismatch" /> <java-symbol type="string" name="shortcut_restore_unknown_issue" /> <!-- From media projection --> <java-symbol type="string" name="config_mediaProjectionPermissionDialogComponent" /> </resources>
media/java/android/media/projection/MediaProjectionManager.java +7 −2 Original line number Diff line number Diff line Loading @@ -20,8 +20,10 @@ import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.SystemService; import android.app.Activity; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.media.projection.IMediaProjection; import android.os.Handler; import android.os.IBinder; Loading Loading @@ -71,8 +73,11 @@ public final class MediaProjectionManager { */ public Intent createScreenCaptureIntent() { Intent i = new Intent(); i.setClassName("com.android.systemui", "com.android.systemui.media.MediaProjectionPermissionActivity"); final ComponentName mediaProjectionPermissionDialogComponent = ComponentName.unflattenFromString(mContext.getResources().getString( com.android.internal.R.string .config_mediaProjectionPermissionDialogComponent)); i.setComponent(mediaProjectionPermissionDialogComponent); return i; } Loading