Example usage for android.support.v4.app NotificationManagerCompat EXTRA_USE_SIDE_CHANNEL

List of usage examples for android.support.v4.app NotificationManagerCompat EXTRA_USE_SIDE_CHANNEL

Introduction

In this page you can find the example usage for android.support.v4.app NotificationManagerCompat EXTRA_USE_SIDE_CHANNEL.

Prototype

String EXTRA_USE_SIDE_CHANNEL

To view the source code for android.support.v4.app NotificationManagerCompat EXTRA_USE_SIDE_CHANNEL.

Click Source Link

Usage

From source file:com.oasisfeng.nevo.decorators.bundle.BundleDecorator.java

private void bundle(final StatusBarNotificationEvo evolving, final String bundle) {
    Log.i(TAG, "Bundle " + evolving.getKey() + " into " + bundle);
    try {/*from w  w w  .j  ava 2s .  com*/
        mBundles.setNotificationBundle(evolving.getKey(), bundle);
        if (!showBundleNotificationIfNeeded(bundle))
            return;

        final IBundle extras = evolving.notification().extras();
        if ((evolving.notification().getFlags() & Notification.FLAG_LOCAL_ONLY) != 0) {
            extras.putBoolean(NevoConstants.EXTRA_REMOVED, true);
            return;
        }
        extras.putBoolean(NotificationManagerCompat.EXTRA_USE_SIDE_CHANNEL, true);
        extras.putString("android.support.groupKey", bundle);
    } catch (final RemoteException ignored) {
    } // Should never happen
}