导航菜单

页面标题

页面副标题

Meine NEW v2.0.3616 - d.java 源代码

正在查看: Meine NEW v2.0.3616 应用的 d.java JAVA 源代码文件

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


package m5;

import android.R;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.speech.tts.TextToSpeech;
import android.text.Html;
import android.util.Base64;
import android.view.MenuItem;
import androidx.appcompat.app.e;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.new_service_gmbh.mapp.views.ZoomableWebView;
import g5.b0;
import g5.m0;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.util.concurrent.Callable;
import k5.t;
import org.json.JSONException;
import org.json.JSONObject;
import w1.l;

public final class d implements androidx.activity.result.b, BottomNavigationView.b, ZoomableWebView.a {
    public final int a;
    public final i b;

    public d(i iVar, int i) {
        this.a = i;
        this.b = iVar;
    }

    public final boolean a(final MenuItem menuItem) {
        j5.a aVar = i.B;
        i iVar = this.b;
        iVar.getClass();
        switch (menuItem.getItemId()) {
            case 2131296319:
                menuItem.setEnabled(false);
                t.b(menuItem, i.B, new f(1, menuItem), new com.google.firebase.messaging.d(4, iVar, menuItem), iVar.getActivity());
                return true;
            case 2131296330:
                j5.a aVar2 = i.B;
                androidx.fragment.app.q activity = iVar.getActivity();
                Intent intent = new Intent("android.intent.action.SEND");
                intent.setType("text/plain");
                intent.putExtra("android.intent.extra.SUBJECT", aVar2.b);
                intent.putExtra("android.intent.extra.TEXT", Html.fromHtml("\nDieser Inhalt der M'App könnte interessant sein.\n\n<a href='https://mapp.new.de/jumpto/" + aVar2.a + "'>Inhalt in der M'App öffnen</a>\n\n"));
                activity.startActivity(Intent.createChooser(intent, activity.getString(2131886553)));
                break;
            case 2131296332:
                menuItem.setEnabled(false);
                final j5.a aVar3 = i.B;
                final y2.a aVar4 = iVar.r;
                final BottomNavigationView bottomNavigationView = iVar.o;
                final e eVar = new e(1, menuItem);
                final i5.c cVar = new i5.c(2, iVar, menuItem);
                final androidx.fragment.app.q activity2 = iVar.getActivity();
                final ProgressDialog show = ProgressDialog.show(activity2, activity2.getString(2131886314), activity2.getString(2131886315), true, false);
                show.setIcon(R.drawable.ic_lock_lock);
                show.setCancelable(false);
                show.setCanceledOnTouchOutside(false);
                new Thread(new Runnable() {
                    @Override
                    public final void run() {
                        j5.a aVar5 = aVar3;
                        final MenuItem menuItem2 = menuItem;
                        final y2.a aVar6 = aVar4;
                        final BottomNavigationView bottomNavigationView2 = bottomNavigationView;
                        final ProgressDialog progressDialog = show;
                        final Callable callable = eVar;
                        final Callable callable2 = cVar;
                        final Context context = activity2;
                        SharedPreferences a = m1.a.a(context.getApplicationContext());
                        JSONObject jSONObject = new JSONObject();
                        try {
                            jSONObject.put("set", "like");
                            jSONObject.put("article_id", aVar5.a);
                            jSONObject.put("persid", a.getString("persid", ""));
                            jSONObject.put("deviceid", m0.i(context.getApplicationContext()));
                            jSONObject.put("providerid", g.c(context));
                            jSONObject.put("pwd", j5.o.f(context.getApplicationContext()));
                        } catch (JSONException e) {
                            g5.j.m(e.toString());
                        }
                        jSONObject.toString();
                        g5.h.b(context.getApplicationContext()).a(new g5.g(jSONObject, new l.b() {
                            public final void d(Object obj) {
                                int i;
                                y2.a aVar7 = aVar6;
                                BottomNavigationView bottomNavigationView3 = bottomNavigationView2;
                                Context context2 = context;
                                ProgressDialog progressDialog2 = progressDialog;
                                Callable callable3 = callable;
                                Callable callable4 = callable2;
                                JSONObject jSONObject2 = (JSONObject) obj;
                                try {
                                    jSONObject2.toString();
                                    if (!jSONObject2.getJSONObject("status").getString("code").startsWith("OK")) {
                                        m0.a(callable4);
                                        return;
                                    }
                                    boolean z = jSONObject2.getBoolean("state");
                                    MenuItem menuItem3 = menuItem2;
                                    if (z) {
                                        menuItem3.setIcon(2131231337);
                                    } else {
                                        menuItem3.setIcon(2131231336);
                                    }
                                    try {
                                        i = Integer.parseInt(jSONObject2.getString("cnt"));
                                    } catch (Exception unused) {
                                        i = 0;
                                    }
                                    m0.e(aVar7, i, bottomNavigationView3, b0.a.getColor(context2, 2131099657));
                                    j5.o.e(context2.getApplicationContext(), null, null);
                                    progressDialog2.dismiss();
                                    m0.a(callable3);
                                } catch (JSONException unused2) {
                                    m0.a(callable4);
                                }
                            }
                        }, new j5.h(callable2, 2)));
                    }
                }).start();
                Bundle bundle = new Bundle();
                bundle.putString("item_name", "USE_LIKE");
                FirebaseAnalytics.getInstance(iVar.getContext()).logEvent("select_item", bundle);
                break;
            case 2131296333:
                TextToSpeech textToSpeech = iVar.n;
                if (textToSpeech == null || !textToSpeech.isSpeaking()) {
                    menuItem.setTitle(2131886131);
                    iVar.e.loadUrl("javascript:if (typeof __ttsOut === 'function') __ttsOut(); void 0");
                    return true;
                }
                iVar.n.stop();
                menuItem.setTitle(2131886130);
                return false;
            default:
                return true;
        }
        return true;
    }

    public final void c(Object obj) {
        Intent intent;
        int i = this.a;
        i iVar = this.b;
        switch (i) {
            case 0:
                androidx.activity.result.a aVar = (androidx.activity.result.a) obj;
                j5.a aVar2 = i.B;
                iVar.getClass();
                int i2 = aVar.c;
                Intent intent2 = aVar.d;
                if (i2 == -1 && intent2 != null) {
                    String stringExtra = intent2.getStringExtra("file_path");
                    Bitmap decodeFile = BitmapFactory.decodeFile(stringExtra);
                    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                    decodeFile.compress(Bitmap.CompressFormat.JPEG, 100, byteArrayOutputStream);
                    String encodeToString = Base64.encodeToString(byteArrayOutputStream.toByteArray(), 0);
                    File file = new File(stringExtra);
                    if (file.exists()) {
                        file.delete();
                    }
                    iVar.e.loadUrl("javascript:if (typeof __getPicture === 'function') __getPicture(" + intent2.getIntExtra("id", -1) + ", '" + encodeToString + "', '" + intent2.getStringExtra("returnment") + "'); void 0");
                    break;
                } else if (i2 == 0 && intent2 != null && intent2.getStringExtra("error") != null && intent2.getStringExtra("error").equals("nopermission")) {
                    androidx.appcompat.app.e a = new e.a(iVar.getActivity()).a();
                    a.setTitle(iVar.getString(2131886124));
                    a.c(-1, iVar.getString(2131886500), new b0(1));
                    a.e(iVar.getString(2131886152));
                    a.show();
                    break;
                }
                break;
            default:
                androidx.activity.result.a aVar3 = (androidx.activity.result.a) obj;
                j5.a aVar4 = i.B;
                iVar.getClass();
                if (aVar3.c == -1 && (intent = aVar3.d) != null) {
                    iVar.e.loadUrl("javascript:if (typeof __setNEWParameter === 'function') __setNEWParameter('" + intent.getStringExtra("parameter") + "'); void 0");
                    break;
                }
                break;
        }
    }
}