mirror of https://github.com/M66B/FairEmail.git
Added remark/link about OAuth
This commit is contained in:
parent
c944d893bc
commit
a7df80ac0f
|
@ -91,6 +91,7 @@ public class FragmentAccount extends FragmentBase {
|
|||
private EditText etPort;
|
||||
private EditText etUser;
|
||||
private TextInputLayout tilPassword;
|
||||
private TextView tvOAuthSupport;
|
||||
private EditText etRealm;
|
||||
|
||||
private EditText etName;
|
||||
|
@ -184,6 +185,7 @@ public class FragmentAccount extends FragmentBase {
|
|||
cbInsecure = view.findViewById(R.id.cbInsecure);
|
||||
etUser = view.findViewById(R.id.etUser);
|
||||
tilPassword = view.findViewById(R.id.tilPassword);
|
||||
tvOAuthSupport = view.findViewById(R.id.tvOAuthSupport);
|
||||
etRealm = view.findViewById(R.id.etRealm);
|
||||
|
||||
etName = view.findViewById(R.id.etName);
|
||||
|
@ -309,6 +311,14 @@ public class FragmentAccount extends FragmentBase {
|
|||
}
|
||||
});
|
||||
|
||||
tvOAuthSupport.setPaintFlags(tvOAuthSupport.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
|
||||
tvOAuthSupport.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Helper.viewFAQ(getContext(), 111);
|
||||
}
|
||||
});
|
||||
|
||||
setColor(color);
|
||||
btnColor.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
|
|
|
@ -248,6 +248,17 @@
|
|||
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvOAuthSupport"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:text="@string/title_oauth_support"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
android:textColor="?android:attr/textColorLink"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tilPassword" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvRealm"
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -256,7 +267,7 @@
|
|||
android:text="@string/title_realm"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tilPassword" />
|
||||
app:layout_constraintTop_toBottomOf="@id/tvOAuthSupport" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etRealm"
|
||||
|
@ -781,7 +792,7 @@
|
|||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:constraint_referenced_ids="
|
||||
tvUser,etUser,tvPassword,tilPassword,tvRealm,etRealm,
|
||||
tvUser,etUser,tvPassword,tilPassword,tvOAuthSupport,tvRealm,etRealm,
|
||||
tvName,tvNameRemark,etName,
|
||||
tvColor,btnColor,vwColor,ibColorDefault,tvColorHint,tvColorPro" />
|
||||
|
||||
|
|
|
@ -403,6 +403,7 @@
|
|||
<string name="title_edit_html">Edit as HTML</string>
|
||||
<string name="title_last_connected">Last connected: %1$s</string>
|
||||
<string name="title_pop3_support">POP3 is not supported</string>
|
||||
<string name="title_oauth_support">OAuth is not supported</string>
|
||||
|
||||
<string name="title_synchronize_now">Synchronize now</string>
|
||||
<string name="title_synchronize_all">Synchronize all messages</string>
|
||||
|
|
Loading…
Reference in New Issue