正在查看: Kahramaa v15.23.3 应用的 SupportFragmentNewUI.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Kahramaa v15.23.3 应用的 SupportFragmentNewUI.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.qa.kahramaa.kahramaa.home.fragments;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.app.b;
import androidx.fragment.app.m;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import com.google.android.material.navigation.NavigationView;
import com.qa.kahramaa.kahramaa.base.ui.FullDrawerLayout;
import com.qa.kahramaa.kahramaa.base.ui.views.AnyTextView;
import com.qa.kahramaa.kahramaa.base.ui.views.FooterBarNewUI;
import com.qa.kahramaa.kahramaa.bookappointment.fragments.BookAppointmentLaunchFragment;
import com.qa.kahramaa.kahramaa.contact.fragments.ContactUsFragmentNew_NewUI;
import com.qa.kahramaa.kahramaa.settings.fragments.LinkFragment;
import ib.w;
import java.util.ArrayList;
import java.util.List;
import oc.i0;
import oc.j0;
import oc.k0;
public class SupportFragmentNewUI extends hb.a implements NavigationView.a {
public static final int f4394m0 = 0;
@BindView
public ImageView close_button;
@BindView
public FullDrawerLayout drawer_layout;
public List<oc.d> f4395k0;
public mc.d f4396l0;
@BindView
public RecyclerView lst_menu_items;
@BindView
public AnyTextView nav_Qid_text;
@BindView
public AnyTextView nav_serial_number;
@BindView
public AnyTextView nav_userName;
@BindView
public AnyTextView nav_userQid;
@BindView
public AnyTextView nav_userShortName;
@BindView
public AnyTextView nav_version_number;
@BindView
public ImageView top_logo;
@BindView
public TextView tv_call;
@BindView
public TextView tv_contact_us;
@BindView
public TextView tv_faq;
@BindView
public TextView tv_watsapp;
@BindView
public LinearLayout user_icon;
public class a implements jb.f {
public a() {
}
@Override
public final void d(View view, int i10) {
if (i10 == 0) {
SupportFragmentNewUI.this.drawer_layout.d();
SupportFragmentNewUI.this.p0().t(ServicesFragmentNewUI.D0(null, false));
return;
}
if (i10 == 1) {
SupportFragmentNewUI supportFragmentNewUI = SupportFragmentNewUI.this;
int i11 = SupportFragmentNewUI.f4394m0;
supportFragmentNewUI.p0().t(new BookAppointmentLaunchFragment());
SupportFragmentNewUI.this.drawer_layout.d();
return;
}
if (i10 == 2) {
SupportFragmentNewUI.this.drawer_layout.d();
return;
}
if (i10 != 3) {
return;
}
SupportFragmentNewUI supportFragmentNewUI2 = SupportFragmentNewUI.this;
int i12 = SupportFragmentNewUI.f4394m0;
if (supportFragmentNewUI2.f8208h0.k() == null) {
m.o("", SupportFragmentNewUI.this.p0());
SupportFragmentNewUI.this.drawer_layout.d();
} else {
m.o("con", SupportFragmentNewUI.this.p0());
SupportFragmentNewUI.this.drawer_layout.d();
}
}
}
public static SupportFragmentNewUI y0() {
SupportFragmentNewUI supportFragmentNewUI = new SupportFragmentNewUI();
supportFragmentNewUI.k0(new Bundle());
return supportFragmentNewUI;
}
@Override
public final void I(Bundle bundle) {
super.I(bundle);
}
@Override
public final View J(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
return layoutInflater.inflate(2131492961, viewGroup, false);
}
@Override
public final void L() {
this.R = true;
}
@Override
public final void Q() {
this.R = true;
}
@Override
public final void R(int i10, String[] strArr, int[] iArr) {
if (i10 != 112) {
return;
}
if (iArr.length <= 0 || iArr[0] != 0) {
w.g(p0(), w().getString(2131690545));
} else {
o0(new Intent("android.intent.action.DIAL", Uri.parse("tel:991")));
}
}
@Override
public final void S() {
this.R = true;
this.f4396l0.f10637r = new a();
if (this.f8208h0.k() != null) {
try {
this.user_icon.setVisibility(0);
String f = this.f8208h0.k().f11801s.f();
String str = "";
if (f.split("\\w+").length > 1) {
str = f.substring(f.lastIndexOf(" ") + 1);
f = f.substring(0, f.lastIndexOf(" "));
}
try {
this.nav_userShortName.setText(f.substring(0, 1) + str.substring(0, 1));
} catch (StringIndexOutOfBoundsException e10) {
e10.printStackTrace();
} catch (Exception e11) {
e11.printStackTrace();
}
this.nav_userQid.setText(String.valueOf(this.f8208h0.k().f11801s.a()));
if (this.f8208h0.g().equalsIgnoreCase("en")) {
this.nav_userName.setText(this.f8208h0.k().f11801s.f());
} else {
this.nav_userName.setText(this.f8208h0.k().f11801s.e());
}
this.nav_Qid_text.setVisibility(0);
} catch (Exception e12) {
e12.printStackTrace();
}
} else {
this.user_icon.setVisibility(8);
}
za.b.b().getClass();
za.b.c(p0(), z(2131690603), new Bundle[0]);
}
@Override
public final void V() {
this.R = true;
}
@Override
public final void W(View view, Bundle bundle) {
super.W(view, bundle);
if (C()) {
q0().setFooterListData(p0());
}
s0().c();
ArrayList arrayList = new ArrayList();
this.f4395k0 = arrayList;
arrayList.add(new oc.d(z(2131690411), 2131231172));
this.f4395k0.add(new oc.d(z(2131690386), 2131231057));
this.f4395k0.add(new oc.d(z(2131689890), 2131231123));
this.f4395k0.add(new oc.d(z(2131690419), 2131231174));
this.f8208h0.getClass();
this.f4395k0 = this.f4395k0;
p0();
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(1);
this.lst_menu_items.setHasFixedSize(true);
this.lst_menu_items.setLayoutManager(linearLayoutManager);
mc.d dVar = new mc.d(p0(), this.f4395k0);
this.f4396l0 = dVar;
this.lst_menu_items.setAdapter(dVar);
this.nav_serial_number.setText(this.f8208h0.e());
this.nav_version_number.setText(String.valueOf(this.f8208h0.f()));
q0().e(4, true);
this.drawer_layout.a(new i0(this));
}
@Override
public final void X(Bundle bundle) {
this.R = true;
s0().c();
}
@Override
public final void k() {
}
@Override
public final void onClick(View view) {
switch (view.getId()) {
case 2131296511:
if (this.drawer_layout.m()) {
this.drawer_layout.d();
break;
}
break;
case 2131297664:
p0().v(1);
break;
case 2131297773:
String string = w().getString(2131689595);
String string2 = w().getString(2131689597);
String string3 = w().getString(2131689593);
p0();
j0 j0Var = new j0(this);
b.a aVar = new b.a(p0(), 2131755016);
aVar.f955a.f = string;
aVar.f(string3, j0Var);
aVar.d(string2, j0Var);
aVar.h();
break;
case 2131297786:
if (this.f8208h0.k() != null) {
bb.a p02 = p0();
new ContactUsFragmentNew_NewUI();
int a10 = this.f8208h0.k().f11801s.a();
ContactUsFragmentNew_NewUI contactUsFragmentNew_NewUI = new ContactUsFragmentNew_NewUI();
Bundle bundle = new Bundle();
bundle.putInt("CUSTQID", a10);
contactUsFragmentNew_NewUI.k0(bundle);
p02.t(contactUsFragmentNew_NewUI);
break;
} else {
bb.a p03 = p0();
new ContactUsFragmentNew_NewUI();
ContactUsFragmentNew_NewUI contactUsFragmentNew_NewUI2 = new ContactUsFragmentNew_NewUI();
Bundle bundle2 = new Bundle();
bundle2.putInt("CUSTQID", -1);
contactUsFragmentNew_NewUI2.k0(bundle2);
p03.t(contactUsFragmentNew_NewUI2);
break;
}
case 2131297829:
za.b.b().getClass();
za.b.c(p0(), z(2131690600), new Bundle[0]);
bb.a p04 = p0();
new LinkFragment();
p04.t(LinkFragment.y0("https://km.qa/Pages/FAQs.aspx?openInMobileApp=1"));
break;
case 2131297964:
try {
Intent intent = new Intent("android.intent.action.VIEW");
intent.setData(Uri.parse("https://api.whatsapp.com/send?phone=+97430303991"));
o0(intent);
break;
} catch (Exception unused) {
w.g(p0(), w().getString(2131690284));
b.a aVar2 = new b.a(s(), 2131755229);
aVar2.f955a.f939d = w().getString(2131689543);
aVar2.f955a.f = w().getString(2131690131);
aVar2.f(s().getString(2131689721), new k0());
androidx.appcompat.app.b a11 = aVar2.a();
a11.setCanceledOnTouchOutside(false);
a11.show();
return;
}
}
}
@Override
public final void v0(FooterBarNewUI footerBarNewUI) {
footerBarNewUI.f();
}
@Override
public final void w0() {
this.tv_faq.setOnClickListener(this);
this.tv_contact_us.setOnClickListener(this);
this.tv_call.setOnClickListener(this);
this.tv_watsapp.setOnClickListener(this);
this.close_button.setOnClickListener(this);
this.top_logo.setOnClickListener(this);
}
}