diff --git a/hello.c b/hello.c index 396fd7e..a1ce2cf 100644 --- a/hello.c +++ b/hello.c @@ -94,13 +94,14 @@ static void notif_send(int which) n.body = "常驻不自动过期(timeout=-1),需手动取消"; n.timeout_ms = MEOW_NOTIFY_TIMEOUT_ONGOING; break; - case 5: /* 带 target_activity(SDK 结构暂无 icon 字段,故只填跳转目标) */ + case 5: /* 带 target_activity + icon(SDK 结构含 icon 字段;NULL/空=用 app 默认图标) */ label = "TGT"; n.cat = MEOW_NOTIFY_CAT_MESSAGE; n.title = "测试-跳转Activity"; n.body = "点击跳转 target_activity=main"; n.timeout_ms = 6000; n.target_activity = "main"; + n.icon = NULL; /* 空 → launcher 用 app 默认图标(app.json icon) */ break; default: return;