|
@@ -3,6 +3,7 @@ package com.miekir.eden.ui.home.about;
|
|
|
import android.content.DialogInterface;
|
|
import android.content.DialogInterface;
|
|
|
import android.text.TextUtils;
|
|
import android.text.TextUtils;
|
|
|
import android.view.View;
|
|
import android.view.View;
|
|
|
|
|
+import android.widget.LinearLayout;
|
|
|
import android.widget.TextView;
|
|
import android.widget.TextView;
|
|
|
|
|
|
|
|
import androidx.appcompat.app.AlertDialog;
|
|
import androidx.appcompat.app.AlertDialog;
|
|
@@ -30,7 +31,7 @@ public class AboutFragment extends BaseMVPFragment implements View.OnClickListen
|
|
|
private String TITLE_FORMAT;
|
|
private String TITLE_FORMAT;
|
|
|
|
|
|
|
|
private TextView tv_title;
|
|
private TextView tv_title;
|
|
|
- private TextView tv_desc;
|
|
|
|
|
|
|
+ private LinearLayout ll_desc;
|
|
|
private TextView tv_active;
|
|
private TextView tv_active;
|
|
|
private View ll_about;
|
|
private View ll_about;
|
|
|
|
|
|
|
@@ -42,7 +43,7 @@ public class AboutFragment extends BaseMVPFragment implements View.OnClickListen
|
|
|
TITLE_FORMAT = StringTool.getString(R.string.about_title);
|
|
TITLE_FORMAT = StringTool.getString(R.string.about_title);
|
|
|
|
|
|
|
|
tv_title = rootView.findViewById(R.id.tv_title);
|
|
tv_title = rootView.findViewById(R.id.tv_title);
|
|
|
- tv_desc = rootView.findViewById(R.id.tv_desc);
|
|
|
|
|
|
|
+ ll_desc = rootView.findViewById(R.id.ll_desc);
|
|
|
tv_active = rootView.findViewById(R.id.tv_active);
|
|
tv_active = rootView.findViewById(R.id.tv_active);
|
|
|
ll_about = rootView.findViewById(R.id.ll_about);
|
|
ll_about = rootView.findViewById(R.id.ll_about);
|
|
|
TextView tv_email = rootView.findViewById(R.id.tv_email);
|
|
TextView tv_email = rootView.findViewById(R.id.tv_email);
|
|
@@ -69,10 +70,10 @@ public class AboutFragment extends BaseMVPFragment implements View.OnClickListen
|
|
|
StringTool.getString(R.string.about_active) : StringTool.getString(R.string.about_not_active));
|
|
StringTool.getString(R.string.about_active) : StringTool.getString(R.string.about_not_active));
|
|
|
tv_title.setText(title);
|
|
tv_title.setText(title);
|
|
|
if (isActive) {
|
|
if (isActive) {
|
|
|
- tv_desc.setVisibility(View.GONE);
|
|
|
|
|
|
|
+ ll_desc.setVisibility(View.GONE);
|
|
|
tv_active.setVisibility(View.GONE);
|
|
tv_active.setVisibility(View.GONE);
|
|
|
} else {
|
|
} else {
|
|
|
- tv_desc.setVisibility(View.VISIBLE);
|
|
|
|
|
|
|
+ ll_desc.setVisibility(View.VISIBLE);
|
|
|
tv_active.setVisibility(View.VISIBLE);
|
|
tv_active.setVisibility(View.VISIBLE);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|