mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Cloud sync: info button
This commit is contained in:
parent
07df28568f
commit
a6322a08db
3 changed files with 19 additions and 8 deletions
2
FAQ.md
2
FAQ.md
|
@ -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>
|
||||
|
||||
🌎 [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…
Reference in a new issue