mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 11:01:23 +01:00
Added support buttons
This commit is contained in:
@@ -89,8 +89,10 @@ public class FragmentOAuth extends FragmentBase {
|
||||
private TextView tvGmailHint;
|
||||
|
||||
private TextView tvError;
|
||||
private Group grpError;
|
||||
private TextView tvGmailDraftsHint;
|
||||
private Button btnSupport;
|
||||
|
||||
private Group grpError;
|
||||
|
||||
private static final int OAUTH_TIMEOUT = 20 * 1000; // milliseconds
|
||||
|
||||
@@ -120,8 +122,10 @@ public class FragmentOAuth extends FragmentBase {
|
||||
tvGmailHint = view.findViewById(R.id.tvGmailHint);
|
||||
|
||||
tvError = view.findViewById(R.id.tvError);
|
||||
grpError = view.findViewById(R.id.grpError);
|
||||
tvGmailDraftsHint = view.findViewById(R.id.tvGmailDraftsHint);
|
||||
btnSupport = view.findViewById(R.id.btnSupport);
|
||||
|
||||
grpError = view.findViewById(R.id.grpError);
|
||||
|
||||
// Wire controls
|
||||
|
||||
@@ -132,6 +136,13 @@ public class FragmentOAuth extends FragmentBase {
|
||||
}
|
||||
});
|
||||
|
||||
btnSupport.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Helper.view(getContext(), Uri.parse(Helper.FAQ_URI + "#user-content-authorizing-accounts"), false);
|
||||
}
|
||||
});
|
||||
|
||||
// Initialize
|
||||
tvGrantHint.setText(getString(R.string.title_setup_oauth_rationale, name));
|
||||
pbOAuth.setVisibility(View.GONE);
|
||||
|
||||
Reference in New Issue
Block a user