Prevent crash

pull/199/head
M66B 4 years ago
parent 07a1f41ab1
commit 17997b8088

@ -357,6 +357,17 @@ public class FixedTextView extends AppCompatTextView {
return super.onTextContextMenuItem(id); return super.onTextContextMenuItem(id);
} catch (Throwable ex) { } catch (Throwable ex) {
Log.e(ex); Log.e(ex);
/*
java.lang.RuntimeException: PARAGRAPH span must start at paragraph boundary
at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:683)
at android.text.SpannableStringBuilder.change(SpannableStringBuilder.java:423)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:534)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:492)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:34)
at android.widget.TextView.paste(TextView.java:9761)
at android.widget.TextView.onTextContextMenuItem(TextView.java:9434)
at android.widget.Editor$TextActionModeCallback.onActionItemClicked(Editor.java:3303)
*/
return false; return false;
} }
} }

@ -14,7 +14,7 @@
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/twotone_lock_24" /> app:srcCompat="@drawable/twotone_lock_24" />
<TextView <eu.faircode.email.FixedTextView
android:id="@+id/text" android:id="@+id/text"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

@ -246,7 +246,7 @@
app:srcCompat="@drawable/twotone_schedule_send_24" app:srcCompat="@drawable/twotone_schedule_send_24"
app:tint="?attr/colorSeparator" /> app:tint="?attr/colorSeparator" />
<TextView <eu.faircode.email.FixedTextView
android:id="@+id/tvOutboxCount" android:id="@+id/tvOutboxCount"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -386,7 +386,7 @@
app:srcCompat="@drawable/twotone_more_vert_24" app:srcCompat="@drawable/twotone_more_vert_24"
app:tint="?attr/colorFabForeground" /> app:tint="?attr/colorFabForeground" />
<TextView <eu.faircode.email.FixedTextView
android:id="@+id/tvSelectedCount" android:id="@+id/tvSelectedCount"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

Loading…
Cancel
Save