Skip to content

Commit 0ac4f53

Browse files
committed
Fixed: transactions created from accounts list view have wrong account assigned
1 parent 7bdca15 commit 0ac4f53

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/org/gnucash/android/ui/account/AccountsListFragment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ public void close() {
673673
}
674674

675675
@Override
676-
public void bindView(View v, Context context, final Cursor cursor) {
676+
public void bindView(View v, Context context, Cursor cursor) {
677677
// perform the default binding
678678
super.bindView(v, context, cursor);
679679

@@ -714,7 +714,6 @@ public void bindView(View v, Context context, final Cursor cursor) {
714714
public void onClick(View v) {
715715
Intent intent = new Intent(getActivity(), TransactionsActivity.class);
716716
intent.setAction(Intent.ACTION_INSERT_OR_EDIT);
717-
String accountUID = cursor.getString(cursor.getColumnIndexOrThrow(DatabaseSchema.AccountEntry.COLUMN_UID));
718717
intent.putExtra(UxArgument.SELECTED_ACCOUNT_UID, accountUID);
719718
getActivity().startActivity(intent);
720719
}

0 commit comments

Comments
 (0)