正在查看: Fancy Optimizer v4.6.3 应用的 EmptyFolderSettingsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fancy Optimizer v4.6.3 应用的 EmptyFolderSettingsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fancyclean.boost.emptyfolder.ui.activity;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.fragment.app.FragmentActivity;
import com.facebook.internal.i0;
import com.thinkyeah.common.ui.dialog.c;
import com.thinkyeah.common.ui.thinklist.a;
import com.thinkyeah.common.ui.view.TitleBar;
import java.util.ArrayList;
import wk.d;
public class EmptyFolderSettingsActivity extends v7.a {
public static final int n = 0;
public com.thinkyeah.common.ui.thinklist.a l;
public final a m = new a();
public class a implements a.c {
public a() {
}
public final boolean a(int i, boolean z10) {
return true;
}
public final void b(int i, boolean z10) {
if (i != 11) {
return;
}
d dVar = EmptyFolderSettingsActivity.this;
SharedPreferences sharedPreferences = dVar.getSharedPreferences("empty_folder", 0);
SharedPreferences.Editor edit = sharedPreferences == null ? null : sharedPreferences.edit();
if (edit != null) {
edit.putBoolean("need_to_scan_android_folder_v2", z10);
edit.apply();
}
SharedPreferences sharedPreferences2 = dVar.getSharedPreferences("empty_folder", 0);
SharedPreferences.Editor edit2 = sharedPreferences2 != null ? sharedPreferences2.edit() : null;
if (edit2 != null) {
edit2.putLong("last_scan_folder_time", 0L);
edit2.apply();
}
if (Build.VERSION.SDK_INT < 30 || !z10 || ml.b.o(dVar)) {
return;
}
new b().j0(dVar, "RequireDocumentApiForAndroidDataDialogFragment");
}
}
public static class b extends c<EmptyFolderSettingsActivity> {
public static final int c = 0;
public final void onCancel(@NonNull DialogInterface dialogInterface) {
super/*androidx.fragment.app.DialogFragment*/.onCancel(dialogInterface);
t0();
}
@NonNull
public final Dialog onCreateDialog(Bundle bundle) {
View inflate = View.inflate(getContext(), 2131558589, null);
inflate.findViewById(2131363738).setVisibility(8);
((ImageView) inflate.findViewById(2131362514)).setImageResource(2131231713);
((ImageView) inflate.findViewById(2131362397)).setVisibility(8);
((TextView) inflate.findViewById(2131363556)).setText(2131887589);
Button button = (Button) inflate.findViewById(2131362014);
button.setText(2131887268);
button.setOnClickListener(new t4.a(this, 10));
Button button2 = (Button) inflate.findViewById(2131362019);
button2.setText(2131886957);
button2.setOnClickListener(new i0(this, 11));
c.a aVar = new c.a(getContext());
aVar.y = 8;
aVar.x = inflate;
return aVar.a();
}
public final void t0() {
FragmentActivity fragmentActivity = (EmptyFolderSettingsActivity) getActivity();
if (fragmentActivity != null) {
fragmentActivity.l.setToggleButtonStatus(false);
SharedPreferences sharedPreferences = fragmentActivity.getSharedPreferences("empty_folder", 0);
SharedPreferences.Editor edit = sharedPreferences == null ? null : sharedPreferences.edit();
if (edit != null) {
edit.putBoolean("need_to_scan_android_folder_v2", false);
edit.apply();
}
O(fragmentActivity);
}
}
}
public final void onActivityResult(int i, int i10, Intent intent) {
Uri data;
if (i != 43) {
super/*androidx.fragment.app.FragmentActivity*/.onActivityResult(i, i10, intent);
return;
}
if (i10 == -1 && intent != null && (data = intent.getData()) != null && "content://com.android.externalstorage.documents/tree/primary%3AAndroid%2Fdata".equals(data.toString())) {
getContentResolver().takePersistableUriPermission(data, 3);
return;
}
this.l.setToggleButtonStatus(false);
SharedPreferences sharedPreferences = getApplicationContext().getSharedPreferences("empty_folder", 0);
SharedPreferences.Editor edit = sharedPreferences == null ? null : sharedPreferences.edit();
if (edit == null) {
return;
}
edit.putBoolean("need_to_scan_android_folder_v2", false);
edit.apply();
}
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(2131558481);
TitleBar.a configure = findViewById(2131363196).getConfigure();
configure.e(2131887905);
configure.g(new com.facebook.login.d(this, 13));
configure.a();
ArrayList arrayList = new ArrayList();
String string = getString(2131887431);
SharedPreferences sharedPreferences = getSharedPreferences("empty_folder", 0);
com.thinkyeah.common.ui.thinklist.a aVar = new com.thinkyeah.common.ui.thinklist.a(string, this, sharedPreferences != null ? sharedPreferences.getBoolean("need_to_scan_android_folder_v2", false) : false, 11);
aVar.setToggleButtonClickListener(this.m);
this.l = aVar;
arrayList.add(aVar);
findViewById(2131363202).setAdapter(new jl.b(arrayList));
}
}