Initial commit

This commit is contained in:
2025-05-13 19:24:51 +02:00
commit a950f49678
10604 changed files with 932663 additions and 0 deletions

View File

@@ -0,0 +1,99 @@
package com.ubt.jimu.world.view.fragment;
import android.content.Context;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewStub;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import com.bumptech.glide.Glide;
import com.ubt.jimu.R;
import com.ubt.jimu.base.entities.Constant;
import com.ubt.jimu.base.entities.Robot;
import com.ubtech.view.fragment.BaseFragment;
/* loaded from: classes2.dex */
public class DownloadModelPgFragment extends BaseFragment implements View.OnClickListener {
private Robot a;
private DownloadInteraction b;
private Unbinder c;
ImageView imgModel;
ProgressBar pgDownloadModel;
TextView tvModelDescription;
TextView tvProgress;
ViewStub vsDownloadFailed;
public interface DownloadInteraction {
void a(Robot robot);
void b(Robot robot);
}
private void a(Robot robot) {
if (robot == null) {
return;
}
this.tvModelDescription.setText(TextUtils.isEmpty(robot.getModelDescriptionLangeage()) ? robot.getModelDescription() : robot.getModelDescriptionLangeage());
Glide.e(getContext()).a(robot.getFilePath()).a(this.imgModel);
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.ubtech.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onAttach(Context context) {
super.onAttach(context);
if (context instanceof DownloadInteraction) {
this.b = (DownloadInteraction) context;
}
}
@Override // android.view.View.OnClickListener
public void onClick(View view) {
DownloadInteraction downloadInteraction;
int id = view.getId();
if (id != R.id.btnCancelDownload) {
if (id == R.id.btnContinueDownload && (downloadInteraction = this.b) != null) {
downloadInteraction.a(this.a);
return;
}
return;
}
DownloadInteraction downloadInteraction2 = this.b;
if (downloadInteraction2 != null) {
downloadInteraction2.b(this.a);
}
}
@Override // com.ubtech.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
if (getArguments() != null) {
this.a = (Robot) getArguments().getSerializable(Constant.SelectRobot.DOWNLAOD_ROBOT_DATA_KEY);
}
}
@Override // com.ubtech.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.fragment_download_model_pg, viewGroup, false);
this.c = ButterKnife.a(this, inflate);
a(this.a);
return inflate;
}
@Override // androidx.fragment.app.Fragment
public void onDestroyView() {
this.c.unbind();
super.onDestroyView();
}
@Override // androidx.fragment.app.Fragment
public void onDetach() {
super.onDetach();
this.b = null;
}
}

View File

@@ -0,0 +1,38 @@
package com.ubt.jimu.world.view.fragment;
import android.view.View;
import android.view.ViewStub;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import butterknife.Unbinder;
import butterknife.internal.Utils;
import com.ubt.jimu.R;
/* loaded from: classes2.dex */
public class DownloadModelPgFragment_ViewBinding implements Unbinder {
private DownloadModelPgFragment b;
public DownloadModelPgFragment_ViewBinding(DownloadModelPgFragment downloadModelPgFragment, View view) {
this.b = downloadModelPgFragment;
downloadModelPgFragment.imgModel = (ImageView) Utils.b(view, R.id.imgModel, "field 'imgModel'", ImageView.class);
downloadModelPgFragment.tvModelDescription = (TextView) Utils.b(view, R.id.tvModelDescription, "field 'tvModelDescription'", TextView.class);
downloadModelPgFragment.tvProgress = (TextView) Utils.b(view, R.id.tvProgress, "field 'tvProgress'", TextView.class);
downloadModelPgFragment.pgDownloadModel = (ProgressBar) Utils.b(view, R.id.pgDownloadModel, "field 'pgDownloadModel'", ProgressBar.class);
downloadModelPgFragment.vsDownloadFailed = (ViewStub) Utils.b(view, R.id.vsDownloadFailed, "field 'vsDownloadFailed'", ViewStub.class);
}
@Override // butterknife.Unbinder
public void unbind() {
DownloadModelPgFragment downloadModelPgFragment = this.b;
if (downloadModelPgFragment == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.b = null;
downloadModelPgFragment.imgModel = null;
downloadModelPgFragment.tvModelDescription = null;
downloadModelPgFragment.tvProgress = null;
downloadModelPgFragment.pgDownloadModel = null;
downloadModelPgFragment.vsDownloadFailed = null;
}
}