从Android Wear中删除ContentIntent,但将其保留在手持设备上

从Android Wear中删除ContentIntent,但将其保留在手持设备上,android,android-notifications,wear-os,Android,Android Notifications,Wear Os,我想从我的android wear通知中删除ContentIntent,我有一个单独的操作,我想在从watch打开应用程序时使用,但仍将其保留在手持设备上。下面的代码设置内容意图,然后在以后将其删除。有人知道怎么做吗 mainNotification.setContentIntent(contentIntent) // wearable extender to add 2nd page and extend the main notification dualNotification =

我想从我的android wear通知中删除ContentIntent,我有一个单独的操作,我想在从watch打开应用程序时使用,但仍将其保留在手持设备上。下面的代码设置内容意图,然后在以后将其删除。有人知道怎么做吗

mainNotification.setContentIntent(contentIntent)

// wearable extender to add 2nd page and extend the main notification
dualNotification =
        new NotificationCompat.WearableExtender()
            .extend(mainNotification)
                .extend(wearableExtendedNotification)
                .setContentIntent(null)  // thisremoves content intent that was set before
                            ;
我也尝试过使用setContentAction,虽然效果不错,但它会将第一张通知卡压扁在可穿戴设备上,因此文本不可读