Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 查看规则图片时,背景不停跳动 #657

Open
7 tasks done
jiuqianyuan opened this issue Jul 9, 2024 · 1 comment
Open
7 tasks done

[BUG] 查看规则图片时,背景不停跳动 #657

jiuqianyuan opened this issue Jul 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jiuqianyuan
Copy link

一些验证

  • 确保 您已经查阅了 GKD 官方文档 以及 常见问题
  • 1.请 确保 已有的问题 中没有人提交过相似issue,否则请在已有的issue下进行讨论
  • 2.请 确保 已有的问题 中没有人提交过相似issue,否则请在已有的issue下进行讨论
  • 3.请 不要 开启重复相关的 issue,这将导致别人搜索 issue 时出现无关的低质量信息, 否则你的问题将会被直接关闭甚至删除
  • 务必 给issue填写一个简洁明了的标题,以便他人快速检索
  • 确保 你的问题能在 releases 发布的最新版本(包含测试版本)上复现 (如果不是请先更新到最新版本复现后再提交问题)
  • 确保 提供下列的日志和BUG描述及其复现步骤, 否则你的问题将会被直接关闭

日志文件-无论什么问题不包含日志将会被直接关闭

log-1720536993282.zip

BUG描述(文字/截图/视频)

点击查看规则中的图片时,背景会不停跳动,及时加载完成后。

规则如下

{
  id: 'com.xiaomi.market',
  name: '小米应用商店',
  groups: [
    
    {
      name: '通知提示',
      key: 1,
      quickFind: true,
      actionMaximum: 1,
      resetMatch: 'app',
      activityIds: [
        'com.xiaomi.market.ui.UpdateListActivity',
        'com.xiaomi.market.business_ui.main.MarketTabActivity'
      ],
      rules: [
        {
          name: '开启推送',
          key: 0,
          matches: [
            '@[id="com.xiaomi.market:id/dialog_cancel"] - LinearLayout > [id="com.xiaomi.market:id/btn_start_push"]'
          ],
          snapshotUrls: [
            'https://i.gkd.li/i/12714980'
          ]
        },
        {
          name: '开启通知栏提醒',
          key: 1,
          action: 'back',
          matches: [
            '[text="开启通知栏提醒"]'
          ],
          snapshotUrls: [
            'https://i.gkd.li/i/13197306',
            'https://i.gkd.li/i/13691701',
            'https://i.gkd.li/i/16145033'
          ]
        }
      ]
    },
    {
      name: '局部广告-首页悬浮窗广告',
      key: 2,
      quickFind: true,
      snapshotUrls: [
        'https://i.gkd.li/i/13248808'
      ],
      activityIds: [
        'com.xiaomi.market.ui.FloatWebActivity'
      ],
      rules: [
        {
          matches: [
            '[id="com.xiaomi.market:id/webview_container"]',
            'Button[text.length=2][text="关闭"]'
          ]
        }
      ]
    },
    {
      name: '局部广告-顶部广告横幅',
      key: 3,
      quickFind: true,
      snapshotUrls: [
        'https://i.gkd.li/i/13197334'
      ],
      activityIds: [
        'com.xiaomi.market.ui.UpdateListActivity'
      ],
      rules: [
        {
          matches: [
            '[id="com.xiaomi.market:id/iv_close_tip"]'
          ]
        }
      ]
    },
    {
      name: '功能类-个性化推荐弹窗',
      key: 4,
      quickFind: true,
      actionMaximum: 1,
      matchTime: 10000,
      resetMatch: 'app',
      snapshotUrls: [
        'https://i.gkd.li/i/13624971'
      ],
      activityIds: [
        'com.xiaomi.market.business_ui.main.MarketTabActivity'
      ],
      rules: [
        {
          matches: [
            '[id="com.xiaomi.market:id/close_float_recommend"]'
          ]
        }
      ]
    },
    {
      key: 5,
      name: '功能类-忽略升级',
      desc: '应用升级界面-自动点击忽略',
      quickFind: true,
      actionMaximum: 1,
      resetMatch: 'app',
      exampleUrls: [
        'https://github.com/gkd-kit/subscription/assets/45487685/a3a61df9-7757-428e-b4fe-a960e09a0bbe'
      ],
      activityIds: [
        'com.xiaomi.market.ui.UpdateListActivity'
      ],
      rules: [
        {
          key: 0,
          matches: [
            '[id="com.xiaomi.market:id/fold_text"][text^="查看全部升级"]'
          ],
          snapshotUrls: [
            'https://i.gkd.li/i/12674261'
          ]
        },
        {
          key: 1,
          matches: [
            '[id="com.xiaomi.market:id/expandable_textview"] + [id="com.xiaomi.market:id/expand_button"][desc="更多"]'
          ],
          snapshotUrls: [
            'https://i.gkd.li/i/12674264'
          ]
        },
        {
          key: 2,
          preKeys: [
            1
          ],
          matches: [
            '@[id="com.xiaomi.market:id/ignore_this"][text="忽略本次"] + [id="com.xiaomi.market:id/ignore_permanently"][text="永久忽略"]'
          ],
          snapshotUrls: [
            'https://i.gkd.li/i/12674269'
          ]
        }
      ]
    },
  ]
}

期望行为(文字/截图/视频)

正常显示

实际行为(文字/截图/视频)

Screenrecorder-2024-07-09-22-54-10-463.mp4
Screenrecorder-2024-07-09-22-58-48-153.mp4
@jiuqianyuan jiuqianyuan added the bug Something isn't working label Jul 9, 2024
@Vstory
Copy link

Vstory commented Aug 28, 2024

+1,遇到过

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants