正在查看: 95爱播免登录版 v3.1.9 应用的 PrivacySetActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 95爱播免登录版 v3.1.9 应用的 PrivacySetActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.showself.ui;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.mifeng.ui.R;
import com.showself.utils.Utils;
import com.showself.utils.u0;
import com.showself.view.ImmersiveStatusBar;
public class PrivacySetActivity extends c implements View.OnClickListener {
private Button a;
private TextView b;
private RelativeLayout c;
private RelativeLayout d;
private TextView f2782e;
private RelativeLayout f2783f;
private TextView f2784g;
private RelativeLayout f2785h;
private TextView f2786i;
private RelativeLayout f2787j;
private TextView f2788k;
private RelativeLayout l;
private TextView m;
private TextView n;
private ImmersiveStatusBar o;
private RelativeLayout p;
private void A() {
if (Build.VERSION.SDK_INT >= 23) {
if (checkSelfPermission("android.permission.READ_PHONE_STATE") != 0) {
this.f2782e.setText(R.string.to_set_up);
} else {
this.f2782e.setText(R.string.opened);
}
if (checkSelfPermission("android.permission.CAMERA") != 0) {
this.f2784g.setText(R.string.to_set_up);
} else {
this.f2784g.setText(R.string.opened);
}
if (checkSelfPermission("android.permission.WRITE_EXTERNAL_STORAGE") != 0) {
this.f2786i.setText(R.string.to_set_up);
} else {
this.f2786i.setText(R.string.opened);
}
if (checkSelfPermission("android.permission.RECORD_AUDIO") != 0) {
this.f2788k.setText(R.string.to_set_up);
} else {
this.f2788k.setText(R.string.opened);
}
if (checkSelfPermission("android.permission.ACCESS_FINE_LOCATION") != 0) {
this.m.setText(R.string.to_set_up);
} else {
this.m.setText(R.string.opened);
}
}
}
private void z() {
Intent intent = new Intent((Context) this, (Class<?>) HtmlDisplayActivity.class);
intent.putExtra("title", "条款");
intent.putExtra("currentType", 2);
intent.putExtra("url", "https://pics.beeshow.tv/mobile/clause.html");
startActivity(intent);
}
@Override
public void init() {
this.c = (RelativeLayout) findViewById(R.id.btn_title_relative);
this.a = (Button) findViewById(R.id.btn_nav_left);
this.b = (TextView) findViewById(R.id.tv_nav_title);
this.d = (RelativeLayout) findViewById(R.id.rl_phone);
this.f2782e = (TextView) findViewById(R.id.tv_phone_state);
this.f2783f = (RelativeLayout) findViewById(R.id.rl_camera);
this.f2784g = (TextView) findViewById(R.id.tv_camera_state);
this.f2785h = (RelativeLayout) findViewById(R.id.rl_file_store);
this.f2786i = (TextView) findViewById(R.id.tv_file_store_state);
this.f2787j = (RelativeLayout) findViewById(R.id.rl_record_audio);
this.f2788k = (TextView) findViewById(R.id.tv_record_audio_state);
this.l = (RelativeLayout) findViewById(R.id.rl_location);
this.m = (TextView) findViewById(R.id.tv_location_state);
this.n = (TextView) findViewById(R.id.tv_rule);
this.o = (ImmersiveStatusBar) findViewById(2131298726);
this.c.setBackgroundColor(getResources().getColor(2131099661));
this.a.setBackgroundResource(R.drawable.juvenile_left_icon_black);
this.a.setOnClickListener(this);
this.b.setText(R.string.privacy_set);
this.d.setOnClickListener(this);
this.f2783f.setOnClickListener(this);
this.f2785h.setOnClickListener(this);
this.f2787j.setOnClickListener(this);
this.l.setOnClickListener(this);
this.n.setOnClickListener(this);
RelativeLayout relativeLayout = (RelativeLayout) findViewById(R.id.rl_remove_account);
this.p = relativeLayout;
relativeLayout.setOnClickListener(this);
A();
}
@Override
protected void onActivityResult(int i2, int i3, Intent intent) {
super.onActivityResult(i2, i3, intent);
if (i3 == 0 && i2 == 10000) {
A();
}
}
@Override
public void onClick(View view) {
switch (view.getId()) {
case R.id.btn_nav_left:
finish();
break;
case R.id.rl_camera:
case R.id.rl_file_store:
case R.id.rl_location:
case R.id.rl_phone:
case R.id.rl_record_audio:
com.r.a.c.b(this);
break;
case R.id.rl_remove_account:
startActivity(new Intent((Context) this, (Class<?>) RemoveAccountActivity.class));
break;
case R.id.tv_rule:
if (!Utils.o0()) {
z();
break;
}
break;
}
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.activity_privacy_set);
u0.q(this, null);
init();
u0.i(this, this.o, 2131099661, true);
}
@Override
public void refresh(Object... objArr) {
}
}