78 lines
2.5 KiB
Java
78 lines
2.5 KiB
Java
package com.ubt.jimu.diy.view.fragment;
|
|
|
|
import android.content.Context;
|
|
import android.os.Bundle;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.TextView;
|
|
import androidx.fragment.app.Fragment;
|
|
import butterknife.ButterKnife;
|
|
import butterknife.Unbinder;
|
|
import com.ubt.jimu.R;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class DiyProgramFragment extends Fragment {
|
|
private static final String ARG_PARAM1 = "param1";
|
|
private static final String ARG_PARAM2 = "param2";
|
|
private Unbinder mBind;
|
|
private OnFragmentInteractionListener mListener;
|
|
private String mParam1;
|
|
private String mParam2;
|
|
protected TextView tvTitle;
|
|
|
|
public interface OnFragmentInteractionListener {
|
|
}
|
|
|
|
public static DiyProgramFragment newInstance(String str, String str2) {
|
|
DiyProgramFragment diyProgramFragment = new DiyProgramFragment();
|
|
Bundle bundle = new Bundle();
|
|
bundle.putString(ARG_PARAM1, str);
|
|
bundle.putString(ARG_PARAM2, str2);
|
|
diyProgramFragment.setArguments(bundle);
|
|
return diyProgramFragment;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // androidx.fragment.app.Fragment
|
|
public void onAttach(Context context) {
|
|
super.onAttach(context);
|
|
if (context instanceof OnFragmentInteractionListener) {
|
|
this.mListener = (OnFragmentInteractionListener) context;
|
|
}
|
|
}
|
|
|
|
protected void onBack(View view) {
|
|
getFragmentManager().d();
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public void onCreate(Bundle bundle) {
|
|
super.onCreate(bundle);
|
|
if (getArguments() != null) {
|
|
this.mParam1 = getArguments().getString(ARG_PARAM1);
|
|
this.mParam2 = getArguments().getString(ARG_PARAM2);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
|
View inflate = layoutInflater.inflate(R.layout.fragment_diy_program, viewGroup, false);
|
|
this.mBind = ButterKnife.a(this, inflate);
|
|
this.tvTitle.setText(R.string.title_diy_program);
|
|
return inflate;
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public void onDestroyView() {
|
|
this.mBind.unbind();
|
|
super.onDestroyView();
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public void onDetach() {
|
|
super.onDetach();
|
|
this.mListener = null;
|
|
}
|
|
}
|