mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-16 02:38:47 +00:00
Updating quantities no longer scrolls the list
This commit is contained in:
parent
04636f3d25
commit
0aa80b514f
@ -343,7 +343,7 @@ public class ListPage extends AppCompatActivity implements Requestor.Receiver {
|
|||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
Log.i("Authentication", e.toString());
|
Log.i("Authentication", e.toString());
|
||||||
}
|
}
|
||||||
listView.setAdapter(myAdapter);
|
myAdapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if(Integer.parseInt(pQuantity.get(position)) <= 1) {
|
if(Integer.parseInt(pQuantity.get(position)) <= 1) {
|
||||||
@ -378,7 +378,7 @@ public class ListPage extends AppCompatActivity implements Requestor.Receiver {
|
|||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
Log.i("Authentication", e.toString());
|
Log.i("Authentication", e.toString());
|
||||||
}
|
}
|
||||||
listView.setAdapter(myAdapter);
|
myAdapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if(Integer.parseInt(pQuantity.get(position)) > 1) {
|
if(Integer.parseInt(pQuantity.get(position)) > 1) {
|
||||||
@ -404,7 +404,7 @@ public class ListPage extends AppCompatActivity implements Requestor.Receiver {
|
|||||||
pImages.remove(position);
|
pImages.remove(position);
|
||||||
|
|
||||||
requestor.deleteObject(pListItemPair.remove(position));
|
requestor.deleteObject(pListItemPair.remove(position));
|
||||||
listView.setAdapter(myAdapter);
|
myAdapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user