mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Small improvements
This commit is contained in:
parent
5d98923ffc
commit
ee3ea6e1c7
2 changed files with 6 additions and 7 deletions
|
@ -40,9 +40,9 @@ public class ActivityEml extends ActivityBase {
|
|||
final TextView tvHtml = findViewById(R.id.tvHtml);
|
||||
final TextView tvEml = findViewById(R.id.tvEml);
|
||||
final ContentLoadingProgressBar pbWait = findViewById(R.id.pbWait);
|
||||
final Group grpEml = findViewById(R.id.grpEml);
|
||||
final Group grpReady = findViewById(R.id.grpReady);
|
||||
|
||||
grpEml.setVisibility(View.GONE);
|
||||
grpReady.setVisibility(View.GONE);
|
||||
|
||||
Uri uri = getIntent().getData();
|
||||
if (uri == null) {
|
||||
|
@ -125,7 +125,7 @@ public class ActivityEml extends ActivityBase {
|
|||
tvBody.setText(result.body);
|
||||
tvHtml.setText(result.html);
|
||||
tvEml.setText(result.eml.substring(0, Math.min(10 * 1024, result.eml.length()))); // prevent ANR
|
||||
grpEml.setVisibility(View.VISIBLE);
|
||||
grpReady.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -135,7 +135,7 @@ public class ActivityEml extends ActivityBase {
|
|||
else
|
||||
Helper.unexpectedError(ActivityEml.this, ActivityEml.this, ex);
|
||||
}
|
||||
}.execute(this, args, "eml");
|
||||
}.execute(this, args, "eml:decode");
|
||||
}
|
||||
|
||||
private class Result {
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvFromTitle"
|
||||
|
@ -230,7 +229,7 @@
|
|||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.constraintlayout.widget.Group
|
||||
android:id="@+id/grpEml"
|
||||
android:id="@+id/grpReady"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:constraint_referenced_ids="
|
||||
|
|
Loading…
Reference in a new issue