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