通知模型补全(agent-107: SDK icon+update_progress / IPC urgency+MSG_NOTIFY_PROGRESS / 存储 urgency+icon回退+progress / CSV加3列) + 全屏收合视觉+滑条(agent-108)
This commit is contained in:
1 parent
9f2befd44a
commit
2d0cb31a3c
1 file changed
+2
-1
@@ -94,13 +94,14 @@ static void notif_send(int which)
|
|||||||
n.body = "常驻不自动过期(timeout=-1),需手动取消";
|
n.body = "常驻不自动过期(timeout=-1),需手动取消";
|
||||||
n.timeout_ms = MEOW_NOTIFY_TIMEOUT_ONGOING;
|
n.timeout_ms = MEOW_NOTIFY_TIMEOUT_ONGOING;
|
||||||
break;
|
break;
|
||||||
case 5: /* 带 target_activity(SDK 结构暂无 icon 字段,故只填跳转目标) */
|
case 5: /* 带 target_activity + icon(SDK 结构含 icon 字段;NULL/空=用 app 默认图标) */
|
||||||
label = "TGT";
|
label = "TGT";
|
||||||
n.cat = MEOW_NOTIFY_CAT_MESSAGE;
|
n.cat = MEOW_NOTIFY_CAT_MESSAGE;
|
||||||
n.title = "测试-跳转Activity";
|
n.title = "测试-跳转Activity";
|
||||||
n.body = "点击跳转 target_activity=main";
|
n.body = "点击跳转 target_activity=main";
|
||||||
n.timeout_ms = 6000;
|
n.timeout_ms = 6000;
|
||||||
n.target_activity = "main";
|
n.target_activity = "main";
|
||||||
|
n.icon = NULL; /* 空 → launcher 用 app 默认图标(app.json icon) */
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in new issue
Block a user