wear/src/main/java/androidx/wear/utils/MetadataConstants.java
public static boolean isNotificationBridgingEnabled(Context context) {
        try {
            ApplicationInfo appInfo = context.getPackageManager().getApplicationInfo(
                    context.getPackageName(), PackageManager.GET_META_DATA);
            if (appInfo.metaData != null) {
                return NOTIFICATION_BRIDGE_MODE_BRIDGING.equals(
                        appInfo.metaData.getString(NOTIFICATION_BRIDGE_MODE_METADATA_NAME));
            }
        } catch (PackageManager.NameNotFoundException e) {
            // Do nothing
        }

        return true;
    }
/**
     * Determines whether a given context has notification bridging enabled.
     *
     * @param context to be evaluated.
     * @return Whether a given context has notification bridging enabled.
     */
Determines whether a given context has notification bridging enabled.
@param context to be evaluated.
@return Whether a given context has notification bridging enabled.
Determines whether a given context has notification bridging enabled . @param context to be evaluated . @return Whether a given context has notification bridging enabled .
public static boolean isNotificationBridgingEnabled(Context context) {
        try {
            ApplicationInfo appInfo = context.getPackageManager().getApplicationInfo(
                    context.getPackageName(), PackageManager.GET_META_DATA);
            if (appInfo.metaData != null) {
                return NOTIFICATION_BRIDGE_MODE_BRIDGING.equals(
                        appInfo.metaData.getString(NOTIFICATION_BRIDGE_MODE_METADATA_NAME));
            }
        } catch (PackageManager.NameNotFoundException e) {
        }
        return true;
    }
public static boolean isNotificationBridgingEnabled ( Context context ) { try { ApplicationInfo appInfo = context . getPackageManager ( ) . getApplicationInfo ( context . getPackageName ( ) , PackageManager . GET_META_DATA ) ; if ( appInfo . metaData != null ) { return NOTIFICATION_BRIDGE_MODE_BRIDGING . equals ( appInfo . metaData . getString ( NOTIFICATION_BRIDGE_MODE_METADATA_NAME ) ) ; } } catch ( PackageManager . NameNotFoundException e ) { } return true ; }
Determines whether a given context has notification bridging enabled.
Determines whether a given context has notification bridging enabled .
// Do nothing