正在查看: 小柿子 v1.3.8 应用的 AppDetailInfoActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 小柿子 v1.3.8 应用的 AppDetailInfoActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.ss.android.downloadlib.addownload.compliance;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Pair;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.sjm.sjmdaly.R$id;
import com.sjm.sjmdaly.R$layout;
import java.util.List;
public class AppDetailInfoActivity extends Activity {
private ImageView a;
private TextView b;
private LinearLayout c;
private RecyclerView d;
private long e;
private long f;
private List<Pair<String, String>> f372g;
public class a extends RecyclerView.Adapter<Object> {
private a() {
}
}
private void b() {
this.a = (ImageView) findViewById(R$id.iv_detail_back);
this.b = (TextView) findViewById(R$id.tv_empty);
this.d = findViewById(R$id.permission_list);
this.c = (LinearLayout) findViewById(R$id.ll_download);
if (this.f372g.isEmpty()) {
this.d.setVisibility(8);
this.b.setVisibility(0);
} else {
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
linearLayoutManager.setOrientation(1);
this.d.setLayoutManager(linearLayoutManager);
this.d.setAdapter(new a());
}
this.a.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
g.a("lp_app_detail_click_close", AppDetailInfoActivity.this.f);
AppDetailInfoActivity.this.finish();
}
});
this.c.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
g.a("lp_app_detail_click_download", AppDetailInfoActivity.this.f);
b.a().b(AppDetailInfoActivity.this.f);
com.ss.android.socialbase.appdownloader.c.a((Activity) AppDetailInfoActivity.this);
com.ss.android.socialbase.appdownloader.c.a(b.a().b());
}
});
}
@Override
public void onBackPressed() {
g.a("lp_app_detail_click_close", this.f);
super.onBackPressed();
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R$layout.ttdownloader_activity_app_detail_info);
if (a()) {
b();
} else {
com.ss.android.socialbase.appdownloader.c.a((Activity) this);
}
}
public static void a(Activity activity, long j) {
Intent intent = new Intent(activity, (Class<?>) AppDetailInfoActivity.class);
intent.putExtra("app_info_id", j);
activity.startActivity(intent);
}
private boolean a() {
this.e = getIntent().getLongExtra("app_info_id", 0L);
com.ss.android.downloadlib.addownload.b.b a5 = c.a().a(this.e);
if (a5 == null) {
return false;
}
this.f = a5.b;
this.f372g = a5.h;
return true;
}
}