Adjust hints to actions

This commit is contained in:
Stefan Niedermann 2020-07-02 09:18:58 +02:00
parent 4f42142522
commit 33cee4397d
4 changed files with 8 additions and 3 deletions

View file

@ -34,7 +34,6 @@ public class ExceptionActivity extends AppCompatActivity {
binding.copy.setOnClickListener((v) -> copyStacktraceToClipboard());
binding.close.setOnClickListener((v) -> close());
final TipsAdapter adapter = new TipsAdapter(this::startActivity);
binding.tips.setAdapter(adapter);
binding.tips.setNestedScrollingEnabled(false);

View file

@ -70,7 +70,6 @@ public class TipsAdapter extends RecyclerView.Adapter<TipsViewHolder> {
.setData(Uri.parse("package:" + BuildConfig.APPLICATION_ID))
.putExtra(INTENT_EXTRA_BUTTON_TEXT, R.string.error_action_open_deck_info);
add(R.string.error_dialog_tip_clear_storage, intent);
add(R.string.error_dialog_tip_clear_storage);
} else if (t instanceof NextcloudFilesAppNotSupportedException) {
add(R.string.error_dialog_tip_files_outdated);
} else if (t instanceof NextcloudApiNotRespondingException) {

View file

@ -44,6 +44,13 @@
tools:itemCount="2"
tools:listitem="@layout/item_tip" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/spacer_2x"
android:text="@string/error_dialog_we_need_info"
android:textAppearance="?attr/textAppearanceBody2" />
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="0dp"

View file

@ -168,7 +168,7 @@
<string name="error_dialog_title">Oh no - What now? 🙁</string>
<string name="error_dialog_tip_token_mismatch_retry">Please try to force close the app and restart it again. There might have been an incorrect connection to the Nextcloud app.</string>
<string name="error_dialog_tip_token_mismatch_clear_storage">If the issue persists, try to clear the storage of both apps: Nextcloud and Nextcloud Notes to solve this issue.</string>
<string name="error_dialog_tip_clear_storage">You can clear the storage by opening android settings → Apps → Nextcloud / Nextcloud Notes → Storage → Clear storage.</string>
<string name="error_dialog_tip_clear_storage">You can clear the storage by opening the app info and selecting Storage → Clear storage.</string>
<string name="error_dialog_tip_files_outdated">Your Nextcloud app seems to be outdated. Please visit the Play Store or F-Droid to get the latest version.</string>
<string name="error_dialog_tip_files_force_stop">Something seems to be wrong with your Nextcloud app. Please try to force stop both, the Nextcloud app and the Nextcloud Notes app.</string>
<string name="error_dialog_tip_files_delete_storage">If force stopping them does not help, you can try to clear the storage of both apps.</string>