Cloud sync: info button

pull/212/head
M66B 2 years ago
parent 07df28568f
commit a6322a08db

@ -5161,6 +5161,8 @@ Unfortunately, it is not possible to enable cloud backup for other backup softwa
<br />
<a name="faq189"></a>
<h2><a name="get-support"></a>Get support</h2>
&#x1F30E; [Google Translate](https://translate.google.com/translate?sl=en&u=https://github.com/M66B/FairEmail/blob/master/FAQ.md%23user-content-get-support)

@ -113,7 +113,7 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
private TextView tvExportPro;
private Button btnImport;
private CardView cardCloud;
private TextView tvCloudInfo;
private ImageButton ibCloudInfo;
private TextView tvCloudPro;
private EditText etUser;
private TextInputLayout tilPassword;
@ -155,7 +155,7 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
tvExportPro = view.findViewById(R.id.tvExportPro);
btnImport = view.findViewById(R.id.btnImport);
cardCloud = view.findViewById(R.id.cardCloud);
tvCloudInfo = view.findViewById(R.id.tvCloudInfo);
ibCloudInfo = view.findViewById(R.id.ibCloudInfo);
tvCloudPro = view.findViewById(R.id.tvCloudPro);
etUser = view.findViewById(R.id.etUser);
tilPassword = view.findViewById(R.id.tilPassword);
@ -181,10 +181,10 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
}
});
tvCloudInfo.setOnClickListener(new View.OnClickListener() {
ibCloudInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 999);
Helper.viewFAQ(v.getContext(), 189);
}
});
@ -242,7 +242,7 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
Helper.linkPro(tvExportPro);
cardCloud.setVisibility(
BuildConfig.DEBUG &&
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O &&
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O &&
!TextUtils.isEmpty(BuildConfig.CLOUD_URI)
? View.VISIBLE : View.GONE);
Helper.linkPro(tvCloudPro);

@ -179,6 +179,17 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageButton
android:id="@+id/ibCloudInfo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/title_info"
android:tooltipText="@string/title_info"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvCloud"
app:srcCompat="@drawable/twotone_info_24" />
<TextView
android:id="@+id/tvCloudInfo"
android:layout_width="0dp"
@ -189,15 +200,13 @@
android:textStyle="italic"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvCloud" />
app:layout_constraintTop_toBottomOf="@id/ibCloudInfo" />
<TextView
android:id="@+id/tvCloudSecurity"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:drawableEnd="@drawable/twotone_info_24"
android:drawablePadding="6dp"
android:text="@string/title_advanced_cloud_security"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="italic"

Loading…
Cancel
Save