package com.example.macsniffer;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Stub manifest receiver. On API 26+ this never actually fires for the implicit
 * INSTALL_SHORTCUT broadcast (implicit-broadcast restriction). It exists only so that
 * Chrome's PackageManager.queryBroadcastReceivers("com.android.launcher.action.INSTALL_SHORTCUT")
 * in WebappsUtils.isAddToHomeIntentSupported() returns non-empty, which un-hides the
 * "Add to Home screen" overflow menu item on devices whose launcher doesn't support
 * pin shortcuts.
 */
public class ManifestStubReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        // Normally unreachable on API 26+ for implicit broadcasts.
    }
}
