premnirmal / StockTicker

A resizable widget that shows your financial portfolio on your android home screen
GNU General Public License v3.0
441 stars 116 forks source link

Re-arranging stocks does change the stock names #304

Open olundberg opened 1 year ago

olundberg commented 1 year ago

Describe the bug While re-arranging the stock list by pressing and moving a stock the label for the stock becomes erranous in an odd way.

To Reproduce Steps to reproduce the behavior:

  1. Press and hold the stock to be re-arranged.
  2. Move the stock (up).
  3. When doing this the stock will dissappear, and a somewhat random labeling from one of the neighboring stocks will be places instead.
  4. See error photos.

Expected behavior I would expect all the labels to remain the same, only that the stock is re-arranged.

Screenshots Note in the two screenshots here, that for the first one I pressed and held and moved the ETH-USD "stock". While moving it it suddenly dissapears, and when releasing the hold, I all of a sudden have two SEK=X instead, but no ETH-USD.

1

2

Smartphone (please complete the following information):

Additional context

muziofg commented 1 year ago

I can confirm, but this happens only when the app is within the period in which it is enabled the fetching of the data. I think it's a problem of concurrency