导航菜单

页面标题

页面副标题

Zepto v25.1.4 - PushTemplateReceiver.java 源代码

正在查看: Zepto v25.1.4 应用的 PushTemplateReceiver.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.clevertap.android.pushtemplates;

import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.text.Html;
import android.text.Spanned;
import android.text.TextUtils;
import android.text.format.DateUtils;
import android.widget.RemoteViews;
import android.widget.Toast;
import androidx.core.app.NotificationCompat;
import androidx.core.app.RemoteInput;
import com.clevertap.android.pushtemplates.content.PendingIntentFactory;
import com.clevertap.android.sdk.CleverTapAPI;
import com.clevertap.android.sdk.CleverTapInstanceConfig;
import com.clevertap.android.sdk.interfaces.NotificationHandler;
import com.clevertap.android.sdk.pushnotification.CTNotificationIntentService;
import com.clevertap.android.sdk.pushnotification.LaunchPendingIntentFactory;
import com.clevertap.android.sdk.task.CTExecutorFactory;
import com.clevertap.android.sdk.task.CTExecutors;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.concurrent.Callable;

public class PushTemplateReceiver extends BroadcastReceiver {
    public String A;
    public String B;
    public CleverTapInstanceConfig C;

    public CleverTapAPI f11432b;

    public RemoteViews f11433c;
    public RemoteViews d;
    public RemoteViews e;
    public RemoteViews f;
    public String g;
    public TemplateType h;
    public String i;
    public String j;
    public String k;
    public String l;
    public boolean s;
    public NotificationManager t;
    public String u;
    public String v;
    public String w;
    public String x;
    public String y;
    public boolean z;

    public final boolean f11431a = true;
    public ArrayList m = new ArrayList();
    public ArrayList n = new ArrayList();
    public ArrayList o = new ArrayList();
    public ArrayList p = new ArrayList();
    public ArrayList q = new ArrayList();
    public int r = 0;

    public static class AnonymousClass2 {

        public static final int[] f11437a;

        static {
            int[] iArr = new int[TemplateType.values().length];
            f11437a = iArr;
            try {
                iArr[3] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                f11437a[4] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                f11437a[5] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            try {
                f11437a[8] = 4;
            } catch (NoSuchFieldError unused4) {
            }
            try {
                f11437a[2] = 5;
            } catch (NoSuchFieldError unused5) {
            }
        }
    }

    public static void a(Context context, Intent intent, Bundle bundle, PushTemplateReceiver pushTemplateReceiver) {
        Class<CTNotificationIntentService> cls;
        pushTemplateReceiver.getClass();
        try {
            int i = bundle.getInt("notificationId");
            if (bundle.getBoolean("default_dl", false)) {
                pushTemplateReceiver.C = bundle.getParcelable("config");
                pushTemplateReceiver.t.cancel(i);
                try {
                    cls = CTNotificationIntentService.class;
                    String str = CTNotificationIntentService.MAIN_ACTION;
                } catch (ClassNotFoundException unused) {
                    cls = null;
                }
                if (com.clevertap.android.sdk.Utils.i(context, cls)) {
                    Intent intent2 = new Intent("com.clevertap.PUSH_EVENT");
                    intent2.setPackage(context.getPackageName());
                    intent2.putExtra("ct_type", "com.clevertap.ACTION_BUTTON_CLICK");
                    intent2.putExtras(bundle);
                    intent2.putExtra("dl", pushTemplateReceiver.l);
                    context.startService(intent2);
                    return;
                }
                Intent intent3 = new Intent("android.intent.action.VIEW", Uri.parse(pushTemplateReceiver.l));
                intent3.removeExtra("wzrk_acts");
                intent3.putExtra("wzrk_from", "CTPushNotificationReceiver");
                intent3.setFlags(872415232);
                CleverTapInstanceConfig cleverTapInstanceConfig = pushTemplateReceiver.C;
                CleverTapAPI A = cleverTapInstanceConfig != null ? CleverTapAPI.A(context, cleverTapInstanceConfig, (String) null) : CleverTapAPI.t(context, (String) null);
                if (A != null) {
                    A.b.h.s(bundle);
                }
                intent3.putExtras(bundle);
                intent3.putExtra("wzrk_dl", pushTemplateReceiver.l);
                context.startActivity(intent3);
                return;
            }
            String str2 = (String) pushTemplateReceiver.n.get(0);
            if (1 == bundle.getInt("clickedStar", 0)) {
                bundle.putString("wzrk_c2a", "rating_1");
                if (pushTemplateReceiver.n.size() > 0) {
                    str2 = (String) pushTemplateReceiver.n.get(0);
                }
            }
            if (2 == bundle.getInt("clickedStar", 0)) {
                bundle.putString("wzrk_c2a", "rating_2");
                str2 = pushTemplateReceiver.n.size() > 1 ? (String) pushTemplateReceiver.n.get(1) : (String) pushTemplateReceiver.n.get(0);
            }
            if (3 == bundle.getInt("clickedStar", 0)) {
                bundle.putString("wzrk_c2a", "rating_3");
                str2 = pushTemplateReceiver.n.size() > 2 ? (String) pushTemplateReceiver.n.get(2) : (String) pushTemplateReceiver.n.get(0);
            }
            if (4 == bundle.getInt("clickedStar", 0)) {
                bundle.putString("wzrk_c2a", "rating_4");
                str2 = pushTemplateReceiver.n.size() > 3 ? (String) pushTemplateReceiver.n.get(3) : (String) pushTemplateReceiver.n.get(0);
            }
            if (5 == bundle.getInt("clickedStar", 0)) {
                bundle.putString("wzrk_c2a", "rating_5");
                str2 = pushTemplateReceiver.n.size() > 4 ? (String) pushTemplateReceiver.n.get(4) : (String) pushTemplateReceiver.n.get(0);
            }
            int i2 = Build.VERSION.SDK_INT;
            if (i2 < 23) {
                bundle.putString("extras_from", "PTReceiver");
                Bundle bundle2 = (Bundle) bundle.clone();
                NotificationHandler notificationHandler = CleverTapAPI.h;
                if (notificationHandler != null) {
                    notificationHandler.b(context, "FCM", bundle);
                    bundle2.putString("wzrk_dl", str2);
                    CleverTapInstanceConfig cleverTapInstanceConfig2 = pushTemplateReceiver.C;
                    HashMap a2 = Utils.a(bundle);
                    CleverTapAPI A2 = cleverTapInstanceConfig2 != null ? CleverTapAPI.A(context, cleverTapInstanceConfig2, (String) null) : CleverTapAPI.t(context, (String) null);
                    if (A2 != null) {
                        A2.H("Rating Submitted", a2);
                    }
                    pushTemplateReceiver.f(context, bundle2, i, str2, pushTemplateReceiver.C);
                    return;
                }
                return;
            }
            Notification n = Utils.n(i, context);
            if (n == null) {
                return;
            }
            pushTemplateReceiver.e = n.bigContentView;
            pushTemplateReceiver.d = n.contentView;
            if (1 == bundle.getInt("clickedStar", 0)) {
                pushTemplateReceiver.e.setImageViewResource(R.id.star1, R.drawable.pt_star_filled);
            } else {
                pushTemplateReceiver.e.setImageViewResource(R.id.star1, R.drawable.pt_star_outline);
            }
            if (2 == bundle.getInt("clickedStar", 0)) {
                pushTemplateReceiver.e.setImageViewResource(R.id.star1, R.drawable.pt_star_filled);
                pushTemplateReceiver.e.setImageViewResource(R.id.star2, R.drawable.pt_star_filled);
            } else {
                pushTemplateReceiver.e.setImageViewResource(R.id.star2, R.drawable.pt_star_outline);
            }
            if (3 == bundle.getInt("clickedStar", 0)) {
                pushTemplateReceiver.e.setImageViewResource(R.id.star1, R.drawable.pt_star_filled);
                pushTemplateReceiver.e.setImageViewResource(R.id.star2, R.drawable.pt_star_filled);
                pushTemplateReceiver.e.setImageViewResource(R.id.star3, R.drawable.pt_star_filled);
            } else {
                pushTemplateReceiver.e.setImageViewResource(R.id.star3, R.drawable.pt_star_outline);
            }
            if (4 == bundle.getInt("clickedStar", 0)) {
                pushTemplateReceiver.e.setImageViewResource(R.id.star1, R.drawable.pt_star_filled);
                pushTemplateReceiver.e.setImageViewResource(R.id.star2, R.drawable.pt_star_filled);
                pushTemplateReceiver.e.setImageViewResource(R.id.star3, R.drawable.pt_star_filled);
                pushTemplateReceiver.e.setImageViewResource(R.id.star4, R.drawable.pt_star_filled);
            } else {
                pushTemplateReceiver.e.setImageViewResource(R.id.star4, R.drawable.pt_star_outline);
            }
            if (5 == bundle.getInt("clickedStar", 0)) {
                pushTemplateReceiver.e.setImageViewResource(R.id.star1, R.drawable.pt_star_filled);
                pushTemplateReceiver.e.setImageViewResource(R.id.star2, R.drawable.pt_star_filled);
                pushTemplateReceiver.e.setImageViewResource(R.id.star3, R.drawable.pt_star_filled);
                pushTemplateReceiver.e.setImageViewResource(R.id.star4, R.drawable.pt_star_filled);
                pushTemplateReceiver.e.setImageViewResource(R.id.star5, R.drawable.pt_star_filled);
            } else {
                pushTemplateReceiver.e.setImageViewResource(R.id.star5, R.drawable.pt_star_outline);
            }
            int i3 = i2 >= 23 ? 201326592 : 134217728;
            for (int i4 : intent.getIntArrayExtra("requestCodes")) {
                PendingIntent.getBroadcast(context, i4, intent, i3).cancel();
            }
            bundle.putString("wzrk_dl", str2);
            pushTemplateReceiver.e.setOnClickPendingIntent(R.id.tVRatingConfirmation, LaunchPendingIntentFactory.a(context, bundle));
            pushTemplateReceiver.i(context);
            NotificationCompat.Builder builder = new NotificationCompat.Builder(context, n);
            PendingIntent c2 = PendingIntentFactory.c(context, new Intent(context, (Class<?>) PushTemplateReceiver.class), bundle);
            if (pushTemplateReceiver.t != null) {
                builder.Q.icon = pushTemplateReceiver.r;
                builder.G = pushTemplateReceiver.d;
                builder.H = pushTemplateReceiver.e;
                builder.e = NotificationCompat.Builder.d(pushTemplateReceiver.i);
                builder.Q.deleteIntent = c2;
                builder.j(16, true);
                pushTemplateReceiver.t.notify(i, builder.c());
            }
            CleverTapInstanceConfig cleverTapInstanceConfig3 = pushTemplateReceiver.C;
            HashMap a3 = Utils.a(bundle);
            CleverTapAPI A3 = cleverTapInstanceConfig3 != null ? CleverTapAPI.A(context, cleverTapInstanceConfig3, (String) null) : CleverTapAPI.t(context, (String) null);
            if (A3 != null) {
                A3.H("Rating Submitted", a3);
            }
            if (Build.VERSION.SDK_INT < 31) {
                pushTemplateReceiver.f(context, bundle, i, str2, pushTemplateReceiver.C);
            }
        } catch (Throwable unused2) {
        }
    }

    public static void b(PushTemplateReceiver pushTemplateReceiver, Context context, Bundle bundle) {
        pushTemplateReceiver.getClass();
        int i = bundle.getInt("notificationId");
        bundle.putString("wzrk_dl", null);
        if (pushTemplateReceiver.f11431a == bundle.getBoolean("close")) {
            bundle.putString("wzrk_c2a", "5cta_close");
            pushTemplateReceiver.t.cancel(i);
        }
        CleverTapInstanceConfig cleverTapInstanceConfig = pushTemplateReceiver.C;
        CleverTapAPI A = cleverTapInstanceConfig != null ? CleverTapAPI.A(context, cleverTapInstanceConfig, (String) null) : CleverTapAPI.t(context, (String) null);
        if (A != null) {
            A.b.h.s(bundle);
        }
    }

    public static void c(com.clevertap.android.pushtemplates.PushTemplateReceiver r12, android.content.Context r13, android.os.Bundle r14) {
        throw new UnsupportedOperationException("Method not decompiled: com.clevertap.android.pushtemplates.PushTemplateReceiver.c(com.clevertap.android.pushtemplates.PushTemplateReceiver, android.content.Context, android.os.Bundle):void");
    }

    public static void d(Context context, Intent intent, Bundle bundle, PushTemplateReceiver pushTemplateReceiver) {
        NotificationCompat.BigTextStyle bigTextStyle;
        Intent launchIntentForPackage;
        pushTemplateReceiver.getClass();
        Bundle b2 = RemoteInput.b(intent);
        PendingIntent c2 = PendingIntentFactory.c(context, new Intent(context, (Class<?>) PushTemplateReceiver.class), bundle);
        pushTemplateReceiver.C = bundle.getParcelable("config");
        if (b2 != null) {
            CharSequence charSequence = b2.getCharSequence("pt_input_reply");
            int i = bundle.getInt("notificationId");
            if (charSequence != null) {
                bundle.putString("pt_input_reply", charSequence.toString());
                CleverTapInstanceConfig cleverTapInstanceConfig = pushTemplateReceiver.C;
                CleverTapAPI A = cleverTapInstanceConfig != null ? CleverTapAPI.A(context, cleverTapInstanceConfig, (String) null) : CleverTapAPI.t(context, (String) null);
                String string = bundle.getString("pt_input_reply");
                HashMap hashMap = new HashMap();
                for (String str : bundle.keySet()) {
                    if (str.contains("pt_event_property") && bundle.getString(str) != null && !bundle.getString(str).isEmpty() && str.contains("pt_event_property_")) {
                        String[] split = str.split("pt_event_property_");
                        if (bundle.getString(str).equalsIgnoreCase("pt_input_reply")) {
                            hashMap.put(split[1], string);
                        } else {
                            hashMap.put(split[1], bundle.getString(str));
                        }
                    }
                }
                String k = Utils.k(bundle);
                if (k != null && !k.isEmpty() && A != null) {
                    A.H(k, hashMap);
                }
                NotificationCompat.Builder builder = pushTemplateReceiver.s ? new NotificationCompat.Builder(context, "pt_silent_sound_channel") : new NotificationCompat.Builder(context, (String) null);
                pushTemplateReceiver.i(context);
                if (Build.VERSION.SDK_INT >= 31) {
                    builder.q = NotificationCompat.Builder.d(pushTemplateReceiver.B);
                }
                int i2 = pushTemplateReceiver.r;
                Notification notification = builder.Q;
                notification.icon = i2;
                builder.e = NotificationCompat.Builder.d(pushTemplateReceiver.i);
                builder.f = NotificationCompat.Builder.d(bundle.getString("pt_input_feedback"));
                builder.M = 1300L;
                notification.deleteIntent = c2;
                notification.when = System.currentTimeMillis();
                builder.j(16, true);
                String str2 = pushTemplateReceiver.v;
                if (str2 == null || !str2.startsWith("http")) {
                    NotificationCompat.BigTextStyle bigTextStyle2 = new NotificationCompat.BigTextStyle();
                    bigTextStyle2.e = NotificationCompat.Builder.d(bundle.getString("pt_input_feedback"));
                    bigTextStyle = bigTextStyle2;
                } else {
                    try {
                        Bitmap m = Utils.m(context, str2);
                        if (m == null) {
                            throw new Exception("Failed to fetch big picture!");
                        }
                        NotificationCompat.BigPictureStyle bigPictureStyle = new NotificationCompat.BigPictureStyle();
                        bigPictureStyle.p(bundle.getString("pt_input_feedback"));
                        bigPictureStyle.o(m);
                        bigTextStyle = bigPictureStyle;
                    } catch (Throwable unused) {
                        NotificationCompat.BigTextStyle bigTextStyle3 = new NotificationCompat.BigTextStyle();
                        bigTextStyle3.e = NotificationCompat.Builder.d(bundle.getString("pt_input_feedback"));
                        bigTextStyle = bigTextStyle3;
                    }
                }
                builder.r(bigTextStyle);
                pushTemplateReceiver.t.notify(i, builder.c());
                if (Build.VERSION.SDK_INT < 31) {
                    if (bundle.getString("pt_input_auto_open") != null || bundle.getBoolean("pt_input_auto_open")) {
                        try {
                            Thread.sleep(1300L);
                        } catch (InterruptedException e) {
                            e.printStackTrace();
                        }
                        if (!bundle.containsKey("wzrk_dl") || bundle.getString("wzrk_dl") == null) {
                            launchIntentForPackage = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName());
                            if (launchIntentForPackage == null) {
                                return;
                            }
                        } else {
                            launchIntentForPackage = new Intent("android.intent.action.VIEW", Uri.parse(intent.getStringExtra("wzrk_dl")));
                            Utils.s(context, launchIntentForPackage);
                        }
                        launchIntentForPackage.putExtras(bundle);
                        launchIntentForPackage.putExtra("pt_reply", charSequence);
                        launchIntentForPackage.removeExtra("wzrk_acts");
                        launchIntentForPackage.setFlags(872415232);
                        context.startActivity(launchIntentForPackage);
                    }
                }
            }
        }
    }

    public static void e(PushTemplateReceiver pushTemplateReceiver, Context context, Bundle bundle) {
        int size;
        pushTemplateReceiver.getClass();
        try {
            if (Build.VERSION.SDK_INT < 23) {
                bundle.putString("extras_from", "PTReceiver");
                NotificationHandler notificationHandler = CleverTapAPI.h;
                if (notificationHandler != null) {
                    notificationHandler.b(context, "FCM", bundle);
                    return;
                }
                return;
            }
            int i = bundle.getInt("notificationId");
            Notification n = Utils.n(i, context);
            if (n == null) {
                return;
            }
            RemoteViews remoteViews = n.bigContentView;
            pushTemplateReceiver.f = remoteViews;
            pushTemplateReceiver.d = n.contentView;
            pushTemplateReceiver.g(remoteViews, context);
            boolean z = bundle.getBoolean("right_swipe");
            pushTemplateReceiver.m = bundle.getStringArrayList("pt_image_list");
            pushTemplateReceiver.n = bundle.getStringArrayList("pt_deeplink_list");
            int i2 = bundle.getInt("pt_manual_carousel_current");
            if (z) {
                pushTemplateReceiver.f.showNext(R.id.carousel_image);
                pushTemplateReceiver.f.showNext(R.id.carousel_image_right);
                pushTemplateReceiver.f.showNext(R.id.carousel_image_left);
                size = i2 == pushTemplateReceiver.m.size() - 1 ? 0 : i2 + 1;
            } else {
                pushTemplateReceiver.f.showPrevious(R.id.carousel_image);
                pushTemplateReceiver.f.showPrevious(R.id.carousel_image_right);
                pushTemplateReceiver.f.showPrevious(R.id.carousel_image_left);
                size = i2 == 0 ? pushTemplateReceiver.m.size() - 1 : i2 - 1;
            }
            String str = "";
            ArrayList arrayList = pushTemplateReceiver.n;
            if (arrayList == null || arrayList.size() != pushTemplateReceiver.m.size()) {
                ArrayList arrayList2 = pushTemplateReceiver.n;
                if (arrayList2 == null || arrayList2.size() != 1) {
                    ArrayList arrayList3 = pushTemplateReceiver.n;
                    if (arrayList3 == null || arrayList3.size() <= size) {
                        ArrayList arrayList4 = pushTemplateReceiver.n;
                        if (arrayList4 != null && arrayList4.size() < size) {
                            str = (String) pushTemplateReceiver.n.get(0);
                        }
                    } else {
                        str = (String) pushTemplateReceiver.n.get(size);
                    }
                } else {
                    str = (String) pushTemplateReceiver.n.get(0);
                }
            } else {
                str = (String) pushTemplateReceiver.n.get(size);
            }
            bundle.putInt("pt_manual_carousel_current", size);
            bundle.remove("right_swipe");
            bundle.putString("wzrk_dl", str);
            bundle.putInt("manual_carousel_from", i2);
            pushTemplateReceiver.f.setOnClickPendingIntent(R.id.rightArrowPos0, PendingIntentFactory.b(context, i, bundle, false, 4, null));
            pushTemplateReceiver.f.setOnClickPendingIntent(R.id.leftArrowPos0, PendingIntentFactory.b(context, i, bundle, false, 5, null));
            PendingIntent b2 = PendingIntentFactory.b(context, i, bundle, true, 3, null);
            NotificationCompat.Builder builder = new NotificationCompat.Builder(context, n);
            PendingIntent b3 = PendingIntentFactory.b(context, i, bundle, false, 6, null);
            pushTemplateReceiver.i(context);
            pushTemplateReceiver.h(builder, pushTemplateReceiver.d, pushTemplateReceiver.f, pushTemplateReceiver.i, b2, b3);
            pushTemplateReceiver.t.notify(i, builder.c());
        } catch (Throwable unused) {
        }
    }

    public final void f(Context context, Bundle bundle, int i, String str, CleverTapInstanceConfig cleverTapInstanceConfig) {
        Intent launchIntentForPackage;
        Thread.sleep(1000L);
        this.t.cancel(i);
        String str2 = this.A;
        if (str2 != null && !str2.isEmpty() && cleverTapInstanceConfig != null) {
            CTExecutors b2 = CTExecutorFactory.b(cleverTapInstanceConfig);
            b2.d(b2.b, b2.c, "Main").c("PushTemplatesUtils#showToast", new Callable<Void>() {

                public final String f11446a;

                public final Context f11447b;

                public AnonymousClass1(String str22, Context context2) {
                    r1 = str22;
                    r2 = context2;
                }

                @Override
                public final Void call() {
                    String str3 = r1;
                    if (TextUtils.isEmpty(str3)) {
                        return null;
                    }
                    Toast.makeText(r2, str3, 0).show();
                    return null;
                }
            });
        }
        context2.sendBroadcast(new Intent("android.intent.action.CLOSE_SYSTEM_DIALOGS"));
        if (bundle.containsKey("wzrk_dl")) {
            launchIntentForPackage = new Intent("android.intent.action.VIEW", Uri.parse(bundle.getString("wzrk_dl")));
            com.clevertap.android.sdk.Utils.k(context2, launchIntentForPackage);
        } else {
            launchIntentForPackage = context2.getPackageManager().getLaunchIntentForPackage(context2.getPackageName());
            if (launchIntentForPackage == null) {
                return;
            }
        }
        launchIntentForPackage.putExtras(bundle);
        launchIntentForPackage.putExtra("wzrk_dl", str);
        launchIntentForPackage.removeExtra("wzrk_acts");
        launchIntentForPackage.putExtra("wzrk_from", "CTPushNotificationReceiver");
        launchIntentForPackage.setFlags(872415232);
        context2.startActivity(launchIntentForPackage);
    }

    public final void g(RemoteViews remoteViews, Context context) {
        Spanned fromHtml;
        remoteViews.setTextViewText(R.id.app_name, Utils.f(context));
        remoteViews.setTextViewText(R.id.timestamp, DateUtils.formatDateTime(context, System.currentTimeMillis(), 1));
        String str = this.B;
        if (str == null || str.isEmpty()) {
            remoteViews.setViewVisibility(R.id.subtitle, 8);
            remoteViews.setViewVisibility(R.id.sep_subtitle, 8);
        } else if (Build.VERSION.SDK_INT >= 24) {
            int i = R.id.subtitle;
            fromHtml = Html.fromHtml(this.B, 0);
            remoteViews.setTextViewText(i, fromHtml);
        } else {
            remoteViews.setTextViewText(R.id.subtitle, Html.fromHtml(this.B));
        }
        String str2 = this.y;
        if (str2 == null || str2.isEmpty()) {
            return;
        }
        remoteViews.setTextColor(R.id.app_name, Utils.i(this.y, "#A6A6A6"));
        remoteViews.setTextColor(R.id.timestamp, Utils.i(this.y, "#A6A6A6"));
        remoteViews.setTextColor(R.id.subtitle, Utils.i(this.y, "#A6A6A6"));
    }

    public final void h(NotificationCompat.Builder builder, RemoteViews remoteViews, RemoteViews remoteViews2, String str, PendingIntent pendingIntent, PendingIntent pendingIntent2) {
        builder.Q.icon = this.r;
        builder.G = remoteViews;
        builder.H = remoteViews2;
        builder.e = NotificationCompat.Builder.d(Html.fromHtml(str));
        Notification notification = builder.Q;
        notification.deleteIntent = pendingIntent2;
        builder.g = pendingIntent;
        builder.h(5);
        notification.when = System.currentTimeMillis();
        builder.j(16, true);
    }

    public final void i(Context context) {
        try {
            String str = null;
            try {
                Object obj = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128).metaData.get("CLEVERTAP_NOTIFICATION_ICON");
                if (obj != null) {
                    str = obj.toString();
                }
            } catch (Throwable unused) {
            }
            if (str == null) {
                throw new IllegalArgumentException();
            }
            int identifier = context.getResources().getIdentifier(str, "drawable", context.getPackageName());
            this.r = identifier;
            if (identifier == 0) {
                throw new IllegalArgumentException();
            }
        } catch (Throwable unused2) {
            this.r = context.getApplicationInfo().icon;
        }
    }

    @Override
    public final void onReceive(final android.content.Context r8, final android.content.Intent r9) {
        throw new UnsupportedOperationException("Method not decompiled: com.clevertap.android.pushtemplates.PushTemplateReceiver.onReceive(android.content.Context, android.content.Intent):void");
    }
}