Allow batch deleting report operations

pull/209/head
M66B 2 years ago
parent df3b817b05
commit 363a77870d

@ -203,6 +203,7 @@ public class FragmentOperations extends FragmentBase {
addAll(ops, db.operation().getOperations(EntityOperation.FLAG)); addAll(ops, db.operation().getOperations(EntityOperation.FLAG));
addAll(ops, db.operation().getOperations(EntityOperation.KEYWORD)); addAll(ops, db.operation().getOperations(EntityOperation.KEYWORD));
addAll(ops, db.operation().getOperations(EntityOperation.LABEL)); addAll(ops, db.operation().getOperations(EntityOperation.LABEL));
addAll(ops, db.operation().getOperations(EntityOperation.REPORT));
} }
if (delete) { if (delete) {

@ -16,9 +16,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:drawableStart="@drawable/twotone_delete_24" android:drawableStart="@drawable/twotone_delete_24"
android:drawablePadding="6dp" android:drawablePadding="6dp"
app:drawableTint="?attr/colorWarning"
android:text="@string/title_delete_operation_title" android:text="@string/title_delete_operation_title"
android:textAppearance="@style/TextAppearance.AppCompat.Large" android:textAppearance="@style/TextAppearance.AppCompat.Large"
app:drawableTint="?attr/colorWarning"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
@ -45,13 +45,14 @@
<TextView <TextView
android:id="@+id/tvFetch" android:id="@+id/tvFetch"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="48dp" android:layout_marginStart="48dp"
android:fontFamily="monospace" android:fontFamily="monospace"
android:text="FETCH, BODY, ATTACHMENT, HEADERS, SYNC" android:text="FETCH, BODY, ATTACHMENT, HEADERS, SYNC"
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textSize="12sp" android:textSize="12sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbFetch" /> app:layout_constraintTop_toBottomOf="@id/cbFetch" />
@ -67,12 +68,14 @@
<TextView <TextView
android:id="@+id/tvMove" android:id="@+id/tvMove"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="48dp" android:layout_marginStart="48dp"
android:fontFamily="monospace"
android:text="MOVE, COPY" android:text="MOVE, COPY"
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textSize="12sp" android:textSize="12sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbMove" /> app:layout_constraintTop_toBottomOf="@id/cbMove" />
@ -88,13 +91,14 @@
<TextView <TextView
android:id="@+id/tvFlag" android:id="@+id/tvFlag"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="48dp" android:layout_marginStart="48dp"
android:fontFamily="monospace" android:fontFamily="monospace"
android:text="SEEN, ANSWERED, FLAG, KEYWORD, LABEL" android:text="SEEN, ANSWERED, FLAG, KEYWORD, LABEL, REPORT"
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textSize="12sp" android:textSize="12sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbFlag" /> app:layout_constraintTop_toBottomOf="@id/cbFlag" />
@ -110,13 +114,14 @@
<TextView <TextView
android:id="@+id/tvDelete" android:id="@+id/tvDelete"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="48dp" android:layout_marginStart="48dp"
android:fontFamily="monospace" android:fontFamily="monospace"
android:text="DELETE, PURGE, EXPUNGE" android:text="DELETE, PURGE, EXPUNGE"
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textSize="12sp" android:textSize="12sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbDelete" /> app:layout_constraintTop_toBottomOf="@id/cbDelete" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

Loading…
Cancel
Save