翰林优商.apk(点击下载) / NotificationBroadcastReceiver.java


package com.xlx.speech.voicereadsdk.receiver;

import android.app.NotificationManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.xlx.speech.m0.u;

public class NotificationBroadcastReceiver extends BroadcastReceiver {
    public void onReceive(Context context, Intent intent) {
        if (intent != null) {
            try {
                u a = u.a(context, intent.getStringExtra("adId"), intent.getStringExtra("logId"), intent.getStringExtra("packageName"));
                if (!a.d()) {
                    a.h();
                } else {
                    a.f();
                }
                ((NotificationManager) context.getSystemService("notification")).cancel(intent.getIntExtra("notifyId", 0));
            } catch (Throwable unused) {
            }
        }
    }
}