mirror of
https://gitea.winboll.cc/Studio/WinBoLL.git
synced 2026-08-19 07:45:29 +08:00
fix(appbase): 桌面快捷菜单仅beta版显示
setupShortcuts()添加包名判断,仅当应用包名为 "cc.winboll.studio.appbase.beta"时才注册邮件设置快捷菜单
This commit is contained in:
@@ -71,6 +71,10 @@ public class MainActivity extends Activity {
|
||||
* 长按桌面图标后显示快捷菜单,点击可直接打开异常邮件接收设置页面
|
||||
*/
|
||||
private void setupShortcuts() {
|
||||
if (!"cc.winboll.studio.appbase.beta".equals(getPackageName())) {
|
||||
return;
|
||||
}
|
||||
|
||||
ShortcutManager shortcutManager = getSystemService(ShortcutManager.class);
|
||||
if (shortcutManager == null) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user