正在查看: Surah Shiksha v1.0.6 应用的 SurahActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Surah Shiksha v1.0.6 应用的 SurahActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.shahriar.surahshikkha.UI;
import A.q;
import N0.b;
import O0.c;
import O0.d;
import P0.a;
import T0.e;
import T0.f;
import T0.g;
import android.content.Context;
import android.content.SharedPreferences;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.text.SpannableString;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.RelativeLayout;
import android.widget.SeekBar;
import android.widget.TextView;
import android.widget.Toast;
import androidx.activity.j;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.RecyclerView;
import com.shahriar.surahshikkha.LayoutManager.ScrollingLinearLayoutManager;
import com.shahriar.surahshikkha.R;
import e.AbstractActivityC0110n;
import f0.C0139H;
import j0.C0244o;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Locale;
import k.C0249C;
public class SurahActivity extends AbstractActivityC0110n implements View.OnClickListener, MediaPlayer.OnCompletionListener, AudioManager.OnAudioFocusChangeListener {
public int f2474A;
public SeekBar f2475B;
public TextView f2476C;
public TextView f2477D;
public MediaPlayer f2478E;
public AudioManager f2479F;
public b f2480G;
public Handler f2482I;
public C0244o f2483J;
public int[] f2489P;
public ScrollingLinearLayoutManager f2494U;
public L0.b f2495V;
public RecyclerView f2496W;
public Button f2497X;
public Button f2498Y;
public TextView f2501b0;
public ImageButton f2504y;
public int f2505z;
public int f2481H = 114;
public int f2484K = 0;
public int f2485L = 0;
public int f2486M = 0;
public int f2487N = 1;
public int f2488O = 0;
public int f2490Q = 2;
public boolean f2491R = false;
public boolean f2492S = false;
public int f2493T = 0;
public final a f2499Z = new a(this);
public Locale f2500a0 = Locale.ENGLISH;
public final g f2502c0 = new g(this);
public final j f2503d0 = new j(16, this);
@Override
public final void attachBaseContext(Context context) {
super.attachBaseContext(U0.b.i(context));
}
public final void n() {
ImageButton imageButton;
int i2 = 2131231272;
if (((Integer) this.f2504y.getTag()).intValue() == 2131231272) {
imageButton = this.f2504y;
i2 = 2131231271;
} else {
imageButton = this.f2504y;
}
imageButton.setImageResource(i2);
this.f2504y.setTag(Integer.valueOf(i2));
}
public final void o() {
this.f2484K = 0;
this.f2485L = this.f2489P[r1.length - 2];
this.f2474A = 0;
this.f2505z = this.f2480G.a();
s(this.f2480G.a() + 1);
this.f2497X.setText(C0244o.d(0, this.f2500a0));
this.f2487N = 1;
}
@Override
public final void onAudioFocusChange(int i2) {
boolean z2;
if (i2 <= 0) {
Log.i(getClass().getSimpleName(), "OnStop");
if (!this.f2478E.isPlaying()) {
return;
}
this.f2478E.pause();
z2 = true;
} else {
if (!this.f2492S) {
return;
}
this.f2478E.start();
q();
z2 = false;
}
this.f2492S = z2;
}
@Override
public void onClick(View view) {
switch (view.getId()) {
case R.id.end_loop:
int i2 = this.f2505z;
String string = getString(R.string.stop_loop);
String string2 = getString(R.string.cancel);
C0244o c0244o = this.f2483J;
int a2 = this.f2480G.a();
Locale locale = this.f2500a0;
c0244o.getClass();
d dVar = new d(this, string, string2, new ArrayList(Arrays.asList(C0244o.g(a2, locale))), i2, new f(this, 1), 3);
dVar.requestWindowFeature(1);
dVar.show();
dVar.a();
break;
case R.id.reset_loop:
Toast.makeText(this, getString(R.string.reset_loop_text), 0).show();
o();
break;
case R.id.startButton:
this.f2491R = true;
if (this.f2478E.isPlaying()) {
this.f2478E.pause();
} else {
this.f2478E.start();
q();
}
n();
break;
case R.id.startLoop:
int i3 = this.f2474A;
String string3 = getString(R.string.start_loop);
String string4 = getString(R.string.cancel);
C0244o c0244o2 = this.f2483J;
int a3 = this.f2480G.a();
Locale locale2 = this.f2500a0;
c0244o2.getClass();
d dVar2 = new d(this, string3, string4, new ArrayList(Arrays.asList(C0244o.g(a3, locale2))), i3, new f(this, 2), 3);
dVar2.requestWindowFeature(1);
dVar2.show();
dVar2.a();
break;
}
}
@Override
public final void onCompletion(MediaPlayer mediaPlayer) {
if (!mediaPlayer.isPlaying()) {
n();
}
this.f2488O = 0;
o();
}
@Override
public final void onCreate(Bundle bundle) {
char c2;
b bVar;
int i2;
super.onCreate(bundle);
setContentView(R.layout.surah_activity_layout);
this.f2481H = getIntent().getIntExtra("surah_no", 114);
Log.d(getLocalClassName(), "Surah number " + this.f2481H);
this.f2500a0 = C0244o.a(this);
this.f2482I = new Handler();
this.f2483J = new C0244o();
m((Toolbar) findViewById(R.id.surahActivityToolbar));
E.a k2 = k();
k2.N1();
k2.M1(true);
k2.P1(2131231137);
if (a.f797b == null) {
synchronized (a.class) {
try {
if (a.f797b == null) {
a.f797b = new a();
}
} finally {
}
}
}
a aVar = a.f797b;
aVar.f798a = this;
String str = "" + this.f2481H;
str.getClass();
int hashCode = str.hashCode();
if (hashCode != 49) {
switch (hashCode) {
case 1790:
if (str.equals("86")) {
c2 = 1;
break;
}
c2 = 65535;
break;
case 1791:
if (str.equals("87")) {
c2 = 2;
break;
}
c2 = 65535;
break;
case 1792:
if (str.equals("88")) {
c2 = 3;
break;
}
c2 = 65535;
break;
case 1793:
if (str.equals("89")) {
c2 = 4;
break;
}
c2 = 65535;
break;
default:
switch (hashCode) {
case 1815:
if (str.equals("90")) {
c2 = 5;
break;
}
c2 = 65535;
break;
case 1816:
if (str.equals("91")) {
c2 = 6;
break;
}
c2 = 65535;
break;
case 1817:
if (str.equals("92")) {
c2 = 7;
break;
}
c2 = 65535;
break;
case 1818:
if (str.equals("93")) {
c2 = '\b';
break;
}
c2 = 65535;
break;
case 1819:
if (str.equals("94")) {
c2 = '\t';
break;
}
c2 = 65535;
break;
case 1820:
if (str.equals("95")) {
c2 = '\n';
break;
}
c2 = 65535;
break;
default:
switch (hashCode) {
case 1822:
if (str.equals("97")) {
c2 = 11;
break;
}
c2 = 65535;
break;
case 1823:
if (str.equals("98")) {
c2 = '\f';
break;
}
c2 = 65535;
break;
case 1824:
if (str.equals("99")) {
c2 = '\r';
break;
}
c2 = 65535;
break;
default:
switch (hashCode) {
case 48625:
if (str.equals("100")) {
c2 = 14;
break;
}
c2 = 65535;
break;
case 48626:
if (str.equals("101")) {
c2 = 15;
break;
}
c2 = 65535;
break;
case 48627:
if (str.equals("102")) {
c2 = 16;
break;
}
c2 = 65535;
break;
case 48628:
if (str.equals("103")) {
c2 = 17;
break;
}
c2 = 65535;
break;
case 48629:
if (str.equals("104")) {
c2 = 18;
break;
}
c2 = 65535;
break;
case 48630:
if (str.equals("105")) {
c2 = 19;
break;
}
c2 = 65535;
break;
case 48631:
if (str.equals("106")) {
c2 = 20;
break;
}
c2 = 65535;
break;
case 48632:
if (str.equals("107")) {
c2 = 21;
break;
}
c2 = 65535;
break;
case 48633:
if (str.equals("108")) {
c2 = 22;
break;
}
c2 = 65535;
break;
case 48634:
if (str.equals("109")) {
c2 = 23;
break;
}
c2 = 65535;
break;
default:
switch (hashCode) {
case 48656:
if (str.equals("110")) {
c2 = 24;
break;
}
c2 = 65535;
break;
case 48657:
if (str.equals("111")) {
c2 = 25;
break;
}
c2 = 65535;
break;
case 48658:
if (str.equals("112")) {
c2 = 26;
break;
}
c2 = 65535;
break;
case 48659:
if (str.equals("113")) {
c2 = 27;
break;
}
c2 = 65535;
break;
case 48660:
if (str.equals("114")) {
c2 = 28;
break;
}
c2 = 65535;
break;
default:
c2 = 65535;
break;
}
}
}
}
}
switch (c2) {
case 0:
bVar = new b(aVar.f798a, 8);
break;
case 1:
bVar = new b(aVar.f798a, 26, 0);
break;
case 2:
bVar = new b(aVar.f798a, 2);
break;
case 3:
bVar = new b(aVar.f798a, 10);
break;
case 4:
bVar = new b(aVar.f798a, 6);
break;
case 5:
bVar = new b(aVar.f798a, 4);
break;
case 6:
bVar = new b(aVar.f798a, 24);
break;
case 7:
bVar = new b(aVar.f798a, 15);
break;
case '\b':
bVar = new b(aVar.f798a, 0);
break;
case '\t':
bVar = new b(aVar.f798a, 23);
break;
case '\n':
bVar = new b(aVar.f798a, 27, 0);
break;
case 11:
bVar = new b(aVar.f798a, 18);
break;
case '\f':
bVar = new b(aVar.f798a, 5);
break;
case '\r':
bVar = new b(aVar.f798a, 28, 0);
break;
case 14:
bVar = new b(aVar.f798a, 1);
break;
case 15:
bVar = new b(aVar.f798a, 19);
break;
case 16:
bVar = new b(aVar.f798a, 25);
break;
case 17:
bVar = new b(aVar.f798a, 3);
break;
case 18:
bVar = new b(aVar.f798a, 11);
break;
case 19:
bVar = new b(aVar.f798a, 9);
break;
case 20:
bVar = new b(aVar.f798a, 20);
break;
case 21:
bVar = new b(aVar.f798a, 17);
break;
case 22:
bVar = new b(aVar.f798a, 14);
break;
case 23:
bVar = new b(aVar.f798a, 13);
break;
case 24:
bVar = new b(aVar.f798a, 22);
break;
case 25:
bVar = new b(aVar.f798a, 16);
break;
case 26:
bVar = new b(aVar.f798a, 12);
break;
case 27:
bVar = new b(aVar.f798a, 7);
break;
case 28:
bVar = new b(aVar.f798a, 21);
break;
default:
bVar = new b(aVar.f798a, 21);
break;
}
this.f2480G = bVar;
SpannableString spannableString = new SpannableString(this.f2480G.f721b.f725a);
spannableString.setSpan(new M0.a(q.b(this, R.font.solaimanlipi)), 0, spannableString.length(), 34);
setTitle(spannableString);
b bVar2 = this.f2480G;
this.f2489P = bVar2.f724e;
MediaPlayer create = MediaPlayer.create(this, bVar2.f723d);
this.f2478E = create;
create.setOnCompletionListener(this);
AudioManager audioManager = (AudioManager) getSystemService("audio");
this.f2479F = audioManager;
audioManager.requestAudioFocus(this, 3, 1);
this.f2486M = this.f2478E.getDuration();
this.f2496W = (RecyclerView) findViewById(R.id.listView);
ScrollingLinearLayoutManager scrollingLinearLayoutManager = new ScrollingLinearLayoutManager(1);
this.f2494U = scrollingLinearLayoutManager;
this.f2496W.setLayoutManager(scrollingLinearLayoutManager);
L0.b bVar3 = new L0.b(this.f2480G, this);
this.f2495V = bVar3;
this.f2496W.setAdapter(bVar3);
RecyclerView recyclerView = this.f2496W;
recyclerView.j(new S0.b(this, recyclerView, new f(this, 0), 1));
TextView textView = (TextView) findViewById(R.id.audio_current_time_text);
this.f2476C = textView;
textView.setTypeface(q.b(this, R.font.solaimanlipi));
TextView textView2 = this.f2476C;
C0244o c0244o = this.f2483J;
Locale locale = this.f2500a0;
c0244o.getClass();
textView2.setText(C0244o.b(0L, locale));
TextView textView3 = (TextView) findViewById(R.id.audio_max_time_text);
this.f2477D = textView3;
textView3.setTypeface(q.b(this, R.font.solaimanlipi));
TextView textView4 = this.f2477D;
C0244o c0244o2 = this.f2483J;
long j2 = this.f2486M;
Locale locale2 = this.f2500a0;
c0244o2.getClass();
textView4.setText(C0244o.b(j2, locale2));
SeekBar seekBar = (SeekBar) findViewById(R.id.seek_bar);
this.f2475B = seekBar;
seekBar.setOnSeekBarChangeListener(this.f2502c0);
this.f2475B.setMax(this.f2486M);
ImageButton imageButton = (ImageButton) findViewById(R.id.startButton);
this.f2504y = imageButton;
imageButton.setOnClickListener(this);
this.f2504y.setTag(2131231272);
Button button = (Button) findViewById(R.id.startLoop);
this.f2497X = button;
button.setTypeface(q.b(this, R.font.solaimanlipi));
this.f2497X.setOnClickListener(this);
this.f2474A = 0;
this.f2497X.setText(C0244o.d(0, this.f2500a0));
Button button2 = (Button) findViewById(R.id.end_loop);
this.f2498Y = button2;
button2.setTypeface(q.b(this, R.font.solaimanlipi));
this.f2498Y.setOnClickListener(this);
int a2 = this.f2480G.a();
this.f2505z = a2;
this.f2498Y.setText(C0244o.d(a2, this.f2500a0));
((ImageButton) findViewById(R.id.reset_loop)).setOnClickListener(this);
Log.d(getClass().getSimpleName(), " Media duration is " + this.f2486M);
this.f2484K = 0;
int[] iArr = this.f2489P;
this.f2485L = iArr[iArr.length - 2];
i2 = PreferenceManager.getDefaultSharedPreferences(this).getInt("max_repeat_count", -1);
this.f2490Q = i2;
if (i2 == -1) {
this.f2490Q = 3;
SharedPreferences.Editor edit = PreferenceManager.getDefaultSharedPreferences(this).edit();
edit.putInt("max_repeat_count", 3);
edit.commit();
}
if (this.f2499Z.c("show_guide", false)) {
Toast.makeText(this, getString(R.string.splash_text), 1).show();
return;
} else {
u();
return;
}
}
if (str.equals("1")) {
c2 = 0;
switch (c2) {
}
this.f2480G = bVar;
SpannableString spannableString2 = new SpannableString(this.f2480G.f721b.f725a);
spannableString2.setSpan(new M0.a(q.b(this, R.font.solaimanlipi)), 0, spannableString2.length(), 34);
setTitle(spannableString2);
b bVar22 = this.f2480G;
this.f2489P = bVar22.f724e;
MediaPlayer create2 = MediaPlayer.create(this, bVar22.f723d);
this.f2478E = create2;
create2.setOnCompletionListener(this);
AudioManager audioManager2 = (AudioManager) getSystemService("audio");
this.f2479F = audioManager2;
audioManager2.requestAudioFocus(this, 3, 1);
this.f2486M = this.f2478E.getDuration();
this.f2496W = (RecyclerView) findViewById(R.id.listView);
ScrollingLinearLayoutManager scrollingLinearLayoutManager2 = new ScrollingLinearLayoutManager(1);
this.f2494U = scrollingLinearLayoutManager2;
this.f2496W.setLayoutManager(scrollingLinearLayoutManager2);
L0.b bVar32 = new L0.b(this.f2480G, this);
this.f2495V = bVar32;
this.f2496W.setAdapter(bVar32);
RecyclerView recyclerView2 = this.f2496W;
recyclerView2.j(new S0.b(this, recyclerView2, new f(this, 0), 1));
TextView textView5 = (TextView) findViewById(R.id.audio_current_time_text);
this.f2476C = textView5;
textView5.setTypeface(q.b(this, R.font.solaimanlipi));
TextView textView22 = this.f2476C;
C0244o c0244o3 = this.f2483J;
Locale locale3 = this.f2500a0;
c0244o3.getClass();
textView22.setText(C0244o.b(0L, locale3));
TextView textView32 = (TextView) findViewById(R.id.audio_max_time_text);
this.f2477D = textView32;
textView32.setTypeface(q.b(this, R.font.solaimanlipi));
TextView textView42 = this.f2477D;
C0244o c0244o22 = this.f2483J;
long j22 = this.f2486M;
Locale locale22 = this.f2500a0;
c0244o22.getClass();
textView42.setText(C0244o.b(j22, locale22));
SeekBar seekBar2 = (SeekBar) findViewById(R.id.seek_bar);
this.f2475B = seekBar2;
seekBar2.setOnSeekBarChangeListener(this.f2502c0);
this.f2475B.setMax(this.f2486M);
ImageButton imageButton2 = (ImageButton) findViewById(R.id.startButton);
this.f2504y = imageButton2;
imageButton2.setOnClickListener(this);
this.f2504y.setTag(2131231272);
Button button3 = (Button) findViewById(R.id.startLoop);
this.f2497X = button3;
button3.setTypeface(q.b(this, R.font.solaimanlipi));
this.f2497X.setOnClickListener(this);
this.f2474A = 0;
this.f2497X.setText(C0244o.d(0, this.f2500a0));
Button button22 = (Button) findViewById(R.id.end_loop);
this.f2498Y = button22;
button22.setTypeface(q.b(this, R.font.solaimanlipi));
this.f2498Y.setOnClickListener(this);
int a22 = this.f2480G.a();
this.f2505z = a22;
this.f2498Y.setText(C0244o.d(a22, this.f2500a0));
((ImageButton) findViewById(R.id.reset_loop)).setOnClickListener(this);
Log.d(getClass().getSimpleName(), " Media duration is " + this.f2486M);
this.f2484K = 0;
int[] iArr2 = this.f2489P;
this.f2485L = iArr2[iArr2.length - 2];
i2 = PreferenceManager.getDefaultSharedPreferences(this).getInt("max_repeat_count", -1);
this.f2490Q = i2;
if (i2 == -1) {
}
if (this.f2499Z.c("show_guide", false)) {
}
}
c2 = 65535;
switch (c2) {
}
this.f2480G = bVar;
SpannableString spannableString22 = new SpannableString(this.f2480G.f721b.f725a);
spannableString22.setSpan(new M0.a(q.b(this, R.font.solaimanlipi)), 0, spannableString22.length(), 34);
setTitle(spannableString22);
b bVar222 = this.f2480G;
this.f2489P = bVar222.f724e;
MediaPlayer create22 = MediaPlayer.create(this, bVar222.f723d);
this.f2478E = create22;
create22.setOnCompletionListener(this);
AudioManager audioManager22 = (AudioManager) getSystemService("audio");
this.f2479F = audioManager22;
audioManager22.requestAudioFocus(this, 3, 1);
this.f2486M = this.f2478E.getDuration();
this.f2496W = (RecyclerView) findViewById(R.id.listView);
ScrollingLinearLayoutManager scrollingLinearLayoutManager22 = new ScrollingLinearLayoutManager(1);
this.f2494U = scrollingLinearLayoutManager22;
this.f2496W.setLayoutManager(scrollingLinearLayoutManager22);
L0.b bVar322 = new L0.b(this.f2480G, this);
this.f2495V = bVar322;
this.f2496W.setAdapter(bVar322);
RecyclerView recyclerView22 = this.f2496W;
recyclerView22.j(new S0.b(this, recyclerView22, new f(this, 0), 1));
TextView textView52 = (TextView) findViewById(R.id.audio_current_time_text);
this.f2476C = textView52;
textView52.setTypeface(q.b(this, R.font.solaimanlipi));
TextView textView222 = this.f2476C;
C0244o c0244o32 = this.f2483J;
Locale locale32 = this.f2500a0;
c0244o32.getClass();
textView222.setText(C0244o.b(0L, locale32));
TextView textView322 = (TextView) findViewById(R.id.audio_max_time_text);
this.f2477D = textView322;
textView322.setTypeface(q.b(this, R.font.solaimanlipi));
TextView textView422 = this.f2477D;
C0244o c0244o222 = this.f2483J;
long j222 = this.f2486M;
Locale locale222 = this.f2500a0;
c0244o222.getClass();
textView422.setText(C0244o.b(j222, locale222));
SeekBar seekBar22 = (SeekBar) findViewById(R.id.seek_bar);
this.f2475B = seekBar22;
seekBar22.setOnSeekBarChangeListener(this.f2502c0);
this.f2475B.setMax(this.f2486M);
ImageButton imageButton22 = (ImageButton) findViewById(R.id.startButton);
this.f2504y = imageButton22;
imageButton22.setOnClickListener(this);
this.f2504y.setTag(2131231272);
Button button32 = (Button) findViewById(R.id.startLoop);
this.f2497X = button32;
button32.setTypeface(q.b(this, R.font.solaimanlipi));
this.f2497X.setOnClickListener(this);
this.f2474A = 0;
this.f2497X.setText(C0244o.d(0, this.f2500a0));
Button button222 = (Button) findViewById(R.id.end_loop);
this.f2498Y = button222;
button222.setTypeface(q.b(this, R.font.solaimanlipi));
this.f2498Y.setOnClickListener(this);
int a222 = this.f2480G.a();
this.f2505z = a222;
this.f2498Y.setText(C0244o.d(a222, this.f2500a0));
((ImageButton) findViewById(R.id.reset_loop)).setOnClickListener(this);
Log.d(getClass().getSimpleName(), " Media duration is " + this.f2486M);
this.f2484K = 0;
int[] iArr22 = this.f2489P;
this.f2485L = iArr22[iArr22.length - 2];
i2 = PreferenceManager.getDefaultSharedPreferences(this).getInt("max_repeat_count", -1);
this.f2490Q = i2;
if (i2 == -1) {
}
if (this.f2499Z.c("show_guide", false)) {
}
}
@Override
public final boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.surah_activity_action_bar_items, menu);
MenuItem findItem = menu.findItem(R.id.action_max_repeat_count);
RelativeLayout relativeLayout = (RelativeLayout) findItem.getActionView();
((ImageButton) relativeLayout.findViewById(R.id.actionBarRepeatCountIcon)).setOnClickListener(new e(this, findItem, 1));
TextView textView = (TextView) relativeLayout.findViewById(R.id.actionBarRepeatCountText);
this.f2501b0 = textView;
textView.setTypeface(q.b(this, R.font.solaimanlipi));
this.f2501b0.setText(C0244o.d(PreferenceManager.getDefaultSharedPreferences(this).getInt("max_repeat_count", -1), this.f2500a0));
this.f2501b0.setOnClickListener(new e(this, findItem, 2));
relativeLayout.setOnClickListener(new e(this, findItem, 0));
return true;
}
@Override
public final void onDestroy() {
super.onDestroy();
this.f2478E.release();
this.f2482I.removeCallbacks(this.f2503d0);
this.f2479F.abandonAudioFocus(this);
Log.d(getClass().getSimpleName(), "On destroy called");
}
@Override
public final boolean onOptionsItemSelected(MenuItem menuItem) {
int itemId = menuItem.getItemId();
if (itemId != R.id.action_max_repeat_count) {
if (itemId != R.id.helpOutlined) {
return super.onOptionsItemSelected(menuItem);
}
u();
return true;
}
ArrayList arrayList = new ArrayList();
for (int i2 = 1; i2 <= 15; i2++) {
arrayList.add(C0244o.d(i2, this.f2500a0));
}
d dVar = new d(this, getString(R.string.max_repeat_count), getString(R.string.cancel), arrayList, this.f2499Z.d("max_repeat_count", 3), new C0249C(this, arrayList), 2);
dVar.requestWindowFeature(1);
dVar.show();
dVar.a();
return true;
}
public final void p(int i2) {
this.f2494U.p0(i2);
this.f2493T = i2;
}
public final void q() {
int currentPosition = this.f2478E.getCurrentPosition();
this.f2475B.setProgress(currentPosition);
TextView textView = this.f2476C;
C0244o c0244o = this.f2483J;
Locale locale = this.f2500a0;
c0244o.getClass();
textView.setText(C0244o.b(currentPosition, locale));
C0244o c0244o2 = this.f2483J;
int[] iArr = this.f2489P;
c0244o2.getClass();
int c2 = C0244o.c(iArr, currentPosition);
if (c2 != this.f2493T) {
p(c2);
r(c2);
}
this.f2482I.postDelayed(this.f2503d0, 50L);
}
public final void r(int i2) {
L0.b bVar = this.f2495V;
if (i2 == -1) {
bVar.getClass();
return;
}
int i3 = bVar.f676f;
C0139H c0139h = bVar.f2887a;
c0139h.c(i3);
bVar.f676f = i2;
c0139h.c(i2);
}
public final void s(int i2) {
int i3 = this.f2489P[i2];
if (i3 <= this.f2484K) {
if (this.f2488O > this.f2480G.a()) {
this.f2488O--;
this.f2484K = this.f2489P[i2 - 1];
} else {
Toast.makeText(this, getString(R.string.end_index_smaller_text), 0).show();
}
int[] iArr = this.f2489P;
int i4 = this.f2488O;
this.f2485L = iArr[i4];
this.f2505z = i4;
s(i4 + 1);
} else {
this.f2485L = i3;
int i5 = i2 - 1;
this.f2505z = i5;
this.f2498Y.setText(C0244o.d(i5, this.f2500a0));
}
Log.d(getLocalClassName(), "LoopIndex " + i2 + " LoopEndTime " + this.f2485L);
}
public final void t(int i2) {
Log.d(getClass().getSimpleName(), "setLoopWhenStartVerseIndexSelected");
TextView textView = this.f2476C;
C0244o c0244o = this.f2483J;
long j2 = this.f2489P[i2];
Locale locale = this.f2500a0;
c0244o.getClass();
textView.setText(C0244o.b(j2, locale));
this.f2488O = i2;
int i3 = this.f2489P[i2];
this.f2484K = i3;
this.f2487N = 1;
this.f2478E.seekTo(i3);
p(i2);
r(i2);
this.f2475B.setProgress(this.f2484K);
this.f2474A = i2;
if (!this.f2478E.isPlaying() && this.f2491R) {
this.f2478E.start();
q();
n();
}
if (this.f2485L <= this.f2489P[i2]) {
s(i2 + 1);
}
this.f2497X.setText(C0244o.d(this.f2474A, this.f2500a0));
Log.d(getLocalClassName(), "LoopIndex " + this.f2488O + " loopStartTime " + this.f2484K);
}
public final void u() {
c cVar = new c(this, getString(R.string.help_outlined_title), getString(R.string.ok), new String[]{getString(R.string.instruction1), getString(R.string.instruction2), getString(R.string.instruction3)});
cVar.requestWindowFeature(1);
cVar.show();
this.f2499Z.e("show_guide", true);
}
}