Merge branch 'master' of github.com:M66B/FairEmail

This commit is contained in:
M66B 2024-02-10 21:06:04 +01:00
commit 19af331516
6 changed files with 25 additions and 5 deletions

2
FAQ.md
View File

@ -5775,6 +5775,8 @@ Requested features should:
* comply with common standards (IMAP, SMTP, etc.)
* comply with the [Core app quality guidelines](https://developer.android.com/docs/quality-guidelines/core-app-quality)
Features unrelated to email, including reading newsgroups and reading RSS feeds, fall outside the scope of the project.
The goal of the design is to be minimalistic (no unnecessary menus, buttons, etc) and non distracting (no fancy colors, animations, etc).
All displayed things should be useful in one or another way and should be carefully positioned for easy usage.
Fonts, sizes, colors, etc should be material design whenever possible.

View File

@ -232,7 +232,7 @@ public class AdapterMedia extends RecyclerView.Adapter<AdapterMedia.ViewHolder>
BinaryBitmap bBitmap = new BinaryBitmap(new HybridBinarizer(source));
MultiFormatReader reader = new MultiFormatReader();
Result result = reader.decode(bBitmap);
args.putString("barcode_text", result.getText());
args.putString("barcode_text", Helper.getPrintableString(result.getText()));
args.putString("barcode_format", result.getBarcodeFormat().name());
} catch (NotFoundException ex) {
Log.w(ex);

View File

@ -2186,6 +2186,8 @@ public class Helper {
// https://issuetracker.google.com/issues/37054851
static String getPrintableString(String value) {
if (TextUtils.isEmpty(value))
return value;
StringBuilder result = new StringBuilder();
for (int i = 0; i < value.length(); i++) {
char kar = value.charAt(i);

View File

@ -93,6 +93,7 @@
android:layout_marginTop="12dp"
android:text="@string/title_synchronize_more_hint3"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?attr/colorWarning"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvRemark2" />

View File

@ -278,9 +278,10 @@
android:id="@+id/tvSyncDays"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginTop="24dp"
android:text="@string/title_sync_days"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:textColorPrimary"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvAutoClassifyPro" />
@ -322,9 +323,10 @@
android:id="@+id/tvKeepDays"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginTop="24dp"
android:text="@string/title_keep_days"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:textColorPrimary"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/etSyncDays" />
@ -360,6 +362,18 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/etKeepDays" />
<TextView
android:id="@+id/tvKeepRemark"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:text="@string/title_synchronize_more_hint3"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?attr/colorWarning"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbKeepAll" />
<CheckBox
android:id="@+id/cbAutoDelete"
android:layout_width="wrap_content"
@ -367,7 +381,7 @@
android:layout_marginTop="12dp"
android:text="@string/title_auto_delete"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbKeepAll" />
app:layout_constraintTop_toBottomOf="@id/tvKeepRemark" />
<TextView
android:id="@+id/tvAutoDeleteHint"
@ -410,7 +424,7 @@
android:id="@+id/btnSave"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginTop="24dp"
android:drawableEnd="@drawable/twotone_save_alt_24"
android:drawablePadding="6dp"
android:tag="disable"

View File

@ -2825,6 +2825,7 @@ adb install /path/to/FairEmail-xxx.apk</code></pre>
<li>comply with common standards (IMAP, SMTP, etc.)</li>
<li>comply with the <a href="https://developer.android.com/docs/quality-guidelines/core-app-quality">Core app quality guidelines</a></li>
</ul>
<p>Features unrelated to email, including reading newsgroups and reading RSS feeds, fall outside the scope of the project.</p>
<p>The goal of the design is to be minimalistic (no unnecessary menus, buttons, etc) and non distracting (no fancy colors, animations, etc). All displayed things should be useful in one or another way and should be carefully positioned for easy usage. Fonts, sizes, colors, etc should be material design whenever possible.</p>
<p>There are requests daily to change the appearance in this or that way, but the problem is that these requests are more often than not conflicting. To prevent making other people unhappy, changes in the appearance always need to clearly and objectively contribute to the usability of the app to be considered.</p>
<p>A feature will be considered useful to most people if more than 0.1% of the users request a feature, which in practice means about 500 people.</p>