Closed RyanTG closed 6 years ago
I'm having trouble duplicating this!
I'll install a fresh build and test again.
Damn, still doing it for me. I uninstalled and reinstalled it on my phone.
@RyanTG OK well how about now?
I'm still experiencing the issue. I have another android phone - I'll load the app onto it just to doublecheck that it's not specific to my device.
Still there on phone #2.
@RyanTG Can you put some debug statements in LocationMachineEdit... the loadConditions method?
I'm curious to see what the size of "ArrayList conditions" is for a specific location/machine.
@RyanTG Preferably a location/machine that has more than 5 comments on it.
Sure, I can try.
Uh, how do I spit out conditions.size
in a debug statement?
Log.d("com.pbm", "NUM COMMENTS", conditions.size());
doesn't work. I can try to figure it out... but this is new to me.
Log.d("com.pbm", "NUM COMMENTS: " + Integer.toString(conditions.size()));
On Sun, Dec 17, 2017 at 8:40 PM, Ryan TG notifications@github.com wrote:
Sure, I can try.
Uh, how do I spit out conditions.size in a debug statement? Log.d("com.pbm", "NUM COMMENTS", conditions.size()); doesn't work. I can try to figure it out... but this is new to me.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/scottwainstock/pbm-android/issues/178#issuecomment-352324448, or mute the thread https://github.com/notifications/unsubscribe-auth/AAK-LfC38OWkYKOYH2e1RbCSxlQqxFFSks5tBezSgaJpZM4Q_Rza .
This is a machine with 12 comments. Anything else I can do to make this more useful?
12-17 20:45:56.924 31502-31502/com.pbm D/com.pbm: location Machine edit resume
12-17 20:45:56.928 31502-31502/com.pbm D/com.pbm: timezone is libcore.util.ZoneInfo[id="America/Los_Angeles",mRawOffset=-28800000,mEarliestRawOffset=-28800000,mUseDst=true,mDstSavings=3600000,transitions=185]
12-17 20:45:56.928 31502-31502/com.pbm D/com.pbm: NUM COMMENTS: 12
12-17 20:45:56.934 31502-31502/com.pbm D/com.pbm: LOAD MACHINE CONDITIONS
12-17 20:45:56.934 31502-31502/com.pbm D/com.pbm: msx edit resume
12-17 20:45:56.936 31502-31502/com.pbm D/com.pbm: timezone is libcore.util.ZoneInfo[id="America/Los_Angeles",mRawOffset=-28800000,mEarliestRawOffset=-28800000,mUseDst=true,mDstSavings=3600000,transitions=185]
12-17 20:45:57.080 31502-31502/com.pbm D/com.pbm.location: PBM onConnected
12-17 20:46:05.830 31502-31502/com.pbm D/com.pbm.location: PBM onConnected
12-17 20:46:08.268 31502-31502/com.pbm D/com.pbm: ENABLING SPINNER
12-17 20:46:08.297 31502-31502/com.pbm D/com.pbm: DISABLING SPINNER
12-17 20:46:08.419 31502-31502/com.pbm D/com.pbm.location: PBM onConnected
12-17 20:46:09.760 31502-31502/com.pbm D/com.pbm: ENABLING SPINNER
12-17 20:46:09.953 31502-32005/com.pbm D/com.pbm: https://pinballmapstaging.herokuapp.com/api/v1/region/la/locations/4653.json?user_email=scott.wainstock@gmail.com;user_token=NCkxWks7jyeuidUrEMJx
12-17 20:46:10.271 31502-31502/com.pbm D/com.pbm: DISABLING SPINNER
12-17 20:46:10.286 31502-31502/com.pbm I/Choreographer: Skipped 33 frames! The application may be doing too much work on its main thread.
12-17 20:46:10.362 31502-31502/com.pbm D/com.pbm.location: PBM onConnected
12-17 20:46:10.380 31502-31502/com.pbm W/IInputConnectionWrapper: finishComposingText on inactive InputConnection
12-17 20:46:10.409 31502-31549/com.pbm D/OpenGLRenderer: endAllActiveAnimators on 0x61d40d00 (ListView) with handle 0xaf8d41d0
12-17 20:46:11.970 31502-31502/com.pbm D/com.pbm: location Machine edit resume
12-17 20:46:11.974 31502-31502/com.pbm D/com.pbm: timezone is libcore.util.ZoneInfo[id="America/Los_Angeles",mRawOffset=-28800000,mEarliestRawOffset=-28800000,mUseDst=true,mDstSavings=3600000,transitions=185]
12-17 20:46:11.974 31502-31502/com.pbm D/com.pbm: NUM COMMENTS: 24
12-17 20:46:11.979 31502-31502/com.pbm D/com.pbm: LOAD MACHINE CONDITIONS
12-17 20:46:11.979 31502-31502/com.pbm D/com.pbm: msx edit resume
12-17 20:46:11.981 31502-31502/com.pbm D/com.pbm: timezone is libcore.util.ZoneInfo[id="America/Los_Angeles",mRawOffset=-28800000,mEarliestRawOffset=-28800000,mUseDst=true,mDstSavings=3600000,transitions=185]
12-17 20:46:12.197 31502-31502/com.pbm D/com.pbm.location: PBM onConnected
What's the location/machine name?
On Sun, Dec 17, 2017 at 8:49 PM, Ryan TG notifications@github.com wrote:
This is a machine with 12 comments. Anything else I can do to make this more useful?
12-17 20:45:56.924 31502-31502/com.pbm D/com.pbm: location Machine edit resume 12-17 20:45:56.928 31502-31502/com.pbm D/com.pbm: timezone is libcore.util.ZoneInfo[id="America/Los_Angeles",mRawOffset=-28800000,mEarliestRawOffset=-28800000,mUseDst=true,mDstSavings=3600000,transitions=185] 12-17 20:45:56.928 31502-31502/com.pbm D/com.pbm: NUM COMMENTS: 12 12-17 20:45:56.934 31502-31502/com.pbm D/com.pbm: LOAD MACHINE CONDITIONS 12-17 20:45:56.934 31502-31502/com.pbm D/com.pbm: msx edit resume 12-17 20:45:56.936 31502-31502/com.pbm D/com.pbm: timezone is libcore.util.ZoneInfo[id="America/Los_Angeles",mRawOffset=-28800000,mEarliestRawOffset=-28800000,mUseDst=true,mDstSavings=3600000,transitions=185] 12-17 20:45:57.080 31502-31502/com.pbm D/com.pbm.location: PBM onConnected 12-17 20:46:05.830 31502-31502/com.pbm D/com.pbm.location: PBM onConnected 12-17 20:46:08.268 31502-31502/com.pbm D/com.pbm: ENABLING SPINNER 12-17 20:46:08.297 31502-31502/com.pbm D/com.pbm: DISABLING SPINNER 12-17 20:46:08.419 31502-31502/com.pbm D/com.pbm.location: PBM onConnected 12-17 20:46:09.760 31502-31502/com.pbm D/com.pbm: ENABLING SPINNER 12-17 20:46:09.953 31502-32005/com.pbm D/com.pbm: https://pinballmapstaging.herokuapp.com/api/v1/region/la/locations/4653.json?user_email=scott.wainstock@gmail.com;user_token=NCkxWks7jyeuidUrEMJx 12-17 https://pinballmapstaging.herokuapp.com/api/v1/region/la/locations/4653.json?user_email=scott.wainstock@gmail.com;user_token=NCkxWks7jyeuidUrEMJx12-17 20:46:10.271 31502-31502/com.pbm D/com.pbm: DISABLING SPINNER 12-17 20:46:10.286 31502-31502/com.pbm I/Choreographer: Skipped 33 frames! The application may be doing too much work on its main thread. 12-17 20:46:10.362 31502-31502/com.pbm D/com.pbm.location: PBM onConnected 12-17 20:46:10.380 31502-31502/com.pbm W/IInputConnectionWrapper: finishComposingText on inactive InputConnection 12-17 20:46:10.409 31502-31549/com.pbm D/OpenGLRenderer: endAllActiveAnimators on 0x61d40d00 (ListView) with handle 0xaf8d41d0 12-17 20:46:11.970 31502-31502/com.pbm D/com.pbm: location Machine edit resume 12-17 20:46:11.974 31502-31502/com.pbm D/com.pbm: timezone is libcore.util.ZoneInfo[id="America/Los_Angeles",mRawOffset=-28800000,mEarliestRawOffset=-28800000,mUseDst=true,mDstSavings=3600000,transitions=185] 12-17 20:46:11.974 31502-31502/com.pbm D/com.pbm: NUM COMMENTS: 24 12-17 20:46:11.979 31502-31502/com.pbm D/com.pbm: LOAD MACHINE CONDITIONS 12-17 20:46:11.979 31502-31502/com.pbm D/com.pbm: msx edit resume 12-17 20:46:11.981 31502-31502/com.pbm D/com.pbm: timezone is libcore.util.ZoneInfo[id="America/Los_Angeles",mRawOffset=-28800000,mEarliestRawOffset=-28800000,mUseDst=true,mDstSavings=3600000,transitions=185] 12-17 20:46:12.197 31502-31502/com.pbm D/com.pbm.location: PBM onConnected
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/scottwainstock/pbm-android/issues/178#issuecomment-352325348, or mute the thread https://github.com/notifications/unsubscribe-auth/AAK-LVNA9e_rFKhp6rC-ixmO4QXtzoqEks5tBe7YgaJpZM4Q_Rza .
Region: Los Angeles Location: 3.99 Pizza Company Machine: Attack from Mars
Also, I can see this issue when I use the emulator. I'm using Nexus_5X_API25_x86
Oh nice, thanks.
On Sun, Dec 17, 2017 at 8:57 PM, Ryan TG notifications@github.com wrote:
Also, I can see this issue when I use the emulator. I'm using Nexus_5X_API25_x86
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/scottwainstock/pbm-android/issues/178#issuecomment-352326191, or mute the thread https://github.com/notifications/unsubscribe-auth/AAK-LcZYwljYzqmxDKb-Gpq1Y0yphqFWks5tBfDGgaJpZM4Q_Rza .
haha, I still can't reproduce it... same everything.
BUT... I am seeing the number of conditions jump on the backend, even if the front-end doesn't reflect this. So, I think I can fix the backend and that'll fix your front-end.
On Sun, Dec 17, 2017 at 9:03 PM, Scott Wainstock scott.wainstock@gmail.com wrote:
Oh nice, thanks.
On Sun, Dec 17, 2017 at 8:57 PM, Ryan TG notifications@github.com wrote:
Also, I can see this issue when I use the emulator. I'm using Nexus_5X_API25_x86
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/scottwainstock/pbm-android/issues/178#issuecomment-352326191, or mute the thread https://github.com/notifications/unsubscribe-auth/AAK-LcZYwljYzqmxDKb-Gpq1Y0yphqFWks5tBfDGgaJpZM4Q_Rza .
@RyanTG OK well maybe this fixed it. https://github.com/scottwainstock/pbm-android/commit/32370174592868e22b9656e9af0c567d81e13996
Fixed!
Steps:
Result:
The machine comment will be duplicated.