package com.foxx.androidcast;

/*********************************************************************
 * TrayNotificationReceiver.java
 * Created at: Sun 17 May 2026 22:49:49 +0200
 * Updated at: Wed 20 May 2026 15:17:13 +0200 by Anton Afanasyeu <a.afanasieff@gmail.com>
 * Commit: 5d8e82d2e60a21fff3138d2a394ee4e8b4c6dcb8
 * class TrayNotificationReceiver
 * Contributors:
 *    - Anton Afanasyeu <a.afanasieff@gmail.com> (2 commits, 26 lines)
 *    - Cursor Agent (project assistant)
 * Digest: SHA256	937557e0d1e01790d07521d21197c6193d1e89f617d76d4edb29ff9dfe55aaf7
**********************************************************************/
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Build;

/**
 * Re-posts tray notification if the user dismisses it (backup for OEMs that allow swipe).
 */
public class TrayNotificationReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if (!AppPreferences.isShowTrayIcon(context)) {
            return;
        }
        CastTrayNotifier.refresh(context);
    }
}
