Skip to content

Commit

Permalink
Merge pull request #1911 from moneymanagerex/google
Browse files Browse the repository at this point in the history
Fix bug of Integer2Long for balance for each trx
  • Loading branch information
guanlisheng authored Nov 22, 2024
2 parents c726deb + 5a3d438 commit c81ee28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ private void showBalanceAmount(TextView textView) {
Object tag = textView.getTag();
if (tag == null) return;

long txId = (int) tag;
long txId = (long)tag;
if (!this.balances.containsKey(txId)) return;

CurrencyService currencyService = new CurrencyService(mContext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public void bindView(View view, Context context, Cursor cursor) {

// colour the amount depending on whether it is above/below the budgeted amount to 2 decimal places
UIHelper uiHelper = new UIHelper(context);
long amountAvailablelong = (int) (amountAvailable * 100);
long amountAvailablelong = (long)amountAvailable * 100;
if (amountAvailablelong < 0) {
amountAvailableTextView.setTextColor(
ContextCompat.getColor(context, uiHelper.resolveAttribute(R.attr.holo_red_color_theme))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ public class BudgetListFragment
extends BaseListFragment
implements LoaderManager.LoaderCallbacks<Cursor> {

public static final long REQUEST_EDIT_BUDGET = 1;

/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
Expand Down Expand Up @@ -176,7 +174,7 @@ public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMen
@Override
public boolean onContextItemSelected(android.view.MenuItem item) {
AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();
long budgetId = (int) info.id;
long budgetId = info.id;
int id = item.getItemId();
ContextMenuIds menuId = ContextMenuIds.get(id);

Expand Down

0 comments on commit c81ee28

Please sign in to comment.