index f6e0e1e..dfd9deb
--- a/core/java/android/app/Dialog.java
+++ b/core/java/android/app/Dialog.java
@@ -62,6 +62,8 @@ import com.android.internal.R;
import com.android.internal.app.WindowDecorActionBar;
import java.lang.ref.WeakReference;
+import android.widget.TextView;
+
/**
* Base class for Dialogs.
@@ -298,6 +300,30 @@ public class Dialog implements DialogInterface, Window.Callback,
onStart();
mDecor = mWindow.getDecorView();
+ if(mContext.getPackageName().equals("com.tencent.qqmusictv")){
+ int qqMusicUpdateID = mContext.getResources().getIdentifier("com.tencent.qqmusictv:id/confirm","id","com.tencent.qqmusictv");
+ TextView musicID= (TextView) mDecor.findViewById(qqMusicUpdateID);
+ if(musicID != null){
+ Log.d(TAG, "ludajun aiqiyi 1 ="+musicID.getText());
+ if(musicID.getText().toString().equals("立即升级")){
+ return;
+ }
+ }
+ }
+
+
+ if(mContext.getPackageName().equals("com.qiyi.video.child")){
+ int resTextId = mContext.getResources().getIdentifier("com.qiyi.video.child:id/dialog_title","id","com.qiyi.video.child");
+ TextView aiQiyiview = (TextView)mDecor.findViewById(resTextId);
+ if(aiQiyiview != null){
+ Log.e(TAG,"ludajun dialog_update_layout getTextview sucess view = " + aiQiyiview.getText());
+ if(aiQiyiview.getText().toString().equals("版本升级")){
+ return;
+ }
+ }
+ }
+
+
屏蔽apk使用的系统某个弹框(此处屏蔽升级弹框)
最新推荐文章于 2024-08-18 23:46:40 发布