package net.ktnx.mobileledger.ui.new_transaction;
import android.annotation.SuppressLint;
-import android.os.Handler;
-import android.os.Looper;
import android.text.TextUtils;
import androidx.annotation.NonNull;
newItems.add(accRow);
}
- new Handler(Looper.getMainLooper()).post(() -> replaceItems(newItems));
+ Misc.onMainThread(() -> replaceItems(newItems));
});
}
private int extractIntFromMatches(MatchResult m, Integer group, Integer literal) {
moveItemLast(newList, singlePositiveIndex);
}
- new Handler(Looper.getMainLooper()).post(() -> {
+ Misc.onMainThread(() -> {
setItems(newList);
noteFocusChanged(1, FocusedElement.Amount);
});