SD Maid v5.6.3版本的 MD5 值为:b283f6effbd880c54f4e4da72852de99
以下内容为反编译后的 ReportingPreferencesFragment.java 源代码,内容仅作参考
package eu.thedarken.sdm.main.ui.settings;
import android.content.Intent;
import android.os.Bundle;
import androidx.fragment.app.q;
import androidx.preference.CheckBoxPreference;
import androidx.preference.Preference;
import eu.thedarken.sdm.App;
import eu.thedarken.sdm.R;
import eu.thedarken.sdm.tools.bugs.reporter.ReportActivity;
import ne.a;
import ta.p;
public class ReportingPreferencesFragment extends SDMPreferenceFragment {
public static final String f4559l0 = App.d("ReportingPreferencesFragment");
@Override
public final boolean I1(Preference preference) {
if ("main.bugreporting.userchoice".equals(preference.f1465r)) {
boolean z4 = ((CheckBoxPreference) preference).T;
boolean z10 = this.f1490d0.c().getBoolean("main.bugreporting.restricted", false);
String str = f4559l0;
a.d(str).a("Bugreporting userchoice: %s", Boolean.valueOf(z4));
a.d(str).a("Bugreporting restricted: %s", Boolean.valueOf(z10));
return true;
}
String str2 = preference.f1465r;
if ("main.bugreporting.issueticket".equals(str2)) {
q y32 = y3();
int i10 = ReportActivity.B;
y32.startActivity(new Intent(y32, ReportActivity.class));
return true;
} else if ("main.privacypolicy".equals(str2)) {
p.d d = new p(y3()).d("https://sdmaid.darken.eu/privacy");
d.d = y3();
d.f9767e = true;
d.c();
return true;
} else {
return super.I1(preference);
}
}
@Override
public final int O3() {
return R.xml.preferences_reporting;
}
@Override
public final void X2(Bundle bundle) {
super.X2(bundle);
S3(R.string.bug_reporting, -1);
}
}