import net.ktnx.mobileledger.utils.ObservableValue;
import java.util.Collections;
+import java.util.Locale;
import java.util.Observer;
import androidx.annotation.NonNull;
flipEditingProfiles();
return true;
});
- Data.profile.addObserver((o, arg) -> {
- MobileLedgerProfile myProfile = (MobileLedgerProfile) holder.itemView.getTag();
- final MobileLedgerProfile currentProfile = Data.profile.get();
- final boolean sameProfile = currentProfile.equals(myProfile);
- });
View.OnTouchListener dragStarter = (v, event) -> {
if (rearrangeHelper != null && editingProfiles.get()) {
public void onBindViewHolder(@NonNull final ProfileListViewHolder holder, int position) {
final MobileLedgerProfile profile = Data.profiles.get(position);
final MobileLedgerProfile currentProfile = Data.profile.get();
- debug("profiles", String.format("pos %d: %s, current: %s", position, profile.getUuid(),
+ debug("profiles", String.format(Locale.ENGLISH,"pos %d: %s, current: %s", position, profile.getUuid(),
(currentProfile == null) ? "<NULL>" : currentProfile.getUuid()));
holder.itemView.setTag(profile);