1.首先是去掉了录屏时的弹框 2.录屏执行的是ScreenRecordDialog.java的方法;导致播放视频录屏时闪烁的问题原因就是启动Dialog的问题,即使dialog并没有show出来.
通过广播直接启动录屏
--- a/sprd/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java
+++ b/sprd/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java
@@ -73,7 +73,10 @@ import com.android.systemui.util.time.DateFormatUtil;
import java.util.Locale;
import java.util.concurrent.Executor;
import javax.inject.Inject;
-
+//modify by luoyalong 20220324 for turn on screenRecord cause shine when play video begin
+import android.app.PendingIntent;
+import com.android.systemui.screenrecord.RecordingService;
+//modify by luoyalong 20220324 for turn on screenRecord cause shine when play video end
/**
* This class contains all of the policy about which icons are installed in the status bar at boot
* time. It goes through the nor
|