Added accounts hint text

pull/194/merge
M66B 3 years ago
parent f19314c2de
commit da098e32ed

@ -71,6 +71,7 @@ public class FragmentAccounts extends FragmentBase {
private ViewGroup view; private ViewGroup view;
private SwipeRefreshLayout swipeRefresh; private SwipeRefreshLayout swipeRefresh;
private TextView tvHintActions;
private Button btnGrant; private Button btnGrant;
private RecyclerView rvAccount; private RecyclerView rvAccount;
private ContentLoadingProgressBar pbWait; private ContentLoadingProgressBar pbWait;
@ -105,6 +106,7 @@ public class FragmentAccounts extends FragmentBase {
// Get controls // Get controls
swipeRefresh = view.findViewById(R.id.swipeRefresh); swipeRefresh = view.findViewById(R.id.swipeRefresh);
tvHintActions = view.findViewById(R.id.tvHintActions);
btnGrant = view.findViewById(R.id.btnGrant); btnGrant = view.findViewById(R.id.btnGrant);
rvAccount = view.findViewById(R.id.rvAccount); rvAccount = view.findViewById(R.id.rvAccount);
pbWait = view.findViewById(R.id.pbWait); pbWait = view.findViewById(R.id.pbWait);
@ -291,6 +293,7 @@ public class FragmentAccounts extends FragmentBase {
fabCompose.show(); fabCompose.show();
} }
tvHintActions.setVisibility(settings ? View.VISIBLE : View.GONE);
btnGrant.setVisibility(View.GONE); btnGrant.setVisibility(View.GONE);
grpReady.setVisibility(View.GONE); grpReady.setVisibility(View.GONE);
pbWait.setVisibility(View.VISIBLE); pbWait.setVisibility(View.VISIBLE);

@ -15,6 +15,16 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<eu.faircode.email.FixedTextView
android:id="@+id/tvHintActions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="6dp"
android:text="@string/title_hint_accounts"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<Button <Button
android:id="@+id/btnGrant" android:id="@+id/btnGrant"
style="?android:attr/buttonStyleSmall" style="?android:attr/buttonStyleSmall"
@ -26,7 +36,7 @@
android:tag="disable" android:tag="disable"
android:text="@string/title_setup_grant_again" android:text="@string/title_setup_grant_again"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toBottomOf="@+id/tvHintActions" />
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvAccount" android:id="@+id/rvAccount"

@ -938,7 +938,8 @@
<string name="title_pop_folders">The POP3 protocol does not support creating folders</string> <string name="title_pop_folders">The POP3 protocol does not support creating folders</string>
<string name="title_oauth_support">OAuth is not supported</string> <string name="title_oauth_support">OAuth is not supported</string>
<string name="title_review">Review</string> <string name="title_review">Review</string>
<string name="title_hint_alias">Long press an identity to display options, like copy to create alias identities</string> <string name="title_hint_accounts">Long press on an account to display options, for example to disable or delete an account</string>
<string name="title_hint_alias">Long press on an identity to display options, like copy to create alias identities</string>
<string name="title_service_auth">The email server said: \'%1$s\'</string> <string name="title_service_auth">The email server said: \'%1$s\'</string>
<string name="title_service_vpn">This might be caused by the VPN that is being used</string> <string name="title_service_vpn">This might be caused by the VPN that is being used</string>
<string name="title_service_token">The Android account manager could be blocked by a VPN, firewall, ad blocker, etc., preventing it from obtaining an access token</string> <string name="title_service_token">The Android account manager could be blocked by a VPN, firewall, ad blocker, etc., preventing it from obtaining an access token</string>

Loading…
Cancel
Save