Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tap on checklist entry opens the TaskFormActivity #57

Closed
negue opened this issue Nov 16, 2015 · 18 comments
Closed

Tap on checklist entry opens the TaskFormActivity #57

negue opened this issue Nov 16, 2015 · 18 comments
Assignees
Milestone

Comments

@negue
Copy link
Member

negue commented Nov 16, 2015

  1. open the checklist in the MainActivity
  2. tap on the text of one
  3. the TaskForm is opened
@phillipthelen
Copy link
Member

that tapping on the text opens the taskform is intentional. Tapping on the checkbox works though, right?

@negue
Copy link
Member Author

negue commented Nov 16, 2015

tapping on the checklist-item-text is intentional too?

Checkbox on/off works yup!

@phillipthelen
Copy link
Member

Yes.
Ideally it would later also select the matching checklist item for editing when you tap on one, but that can be done later.

@negue
Copy link
Member Author

negue commented Nov 16, 2015

Hm okay, but then it crashes^^ if you go back (back button)

@franzejr
Copy link
Contributor

  1. Open the app
  2. Go to Dailies
  3. Click on the text of a Daily
  4. Crashes
                                                                                     Process: com.habitrpg.android.habitica.debug, PID: 28249
                                                                                     android.database.sqlite.SQLiteConstraintException: Days.user_id may not be NULL (code 19)
                                                                                         at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
                                                                                         at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:782)
                                                                                         at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)
                                                                                         at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
                                                                                         at com.raizlabs.android.dbflow.sql.SqlUtils.insert(SqlUtils.java:314)
                                                                                         at com.raizlabs.android.dbflow.sql.SqlUtils.save(SqlUtils.java:268)
                                                                                         at com.raizlabs.android.dbflow.structure.ModelAdapter.save(ModelAdapter.java:54)
                                                                                         at com.raizlabs.android.dbflow.structure.BaseModel.save(BaseModel.java:50)
                                                                                         at com.magicmicky.habitrpgwrapper.lib.models.tasks.Task$Adapter.bindToContentValues(Task$Adapter.java:216)
                                                                                         at com.magicmicky.habitrpgwrapper.lib.models.tasks.Task$Adapter.bindToContentValues(Task$Adapter.java:12)
                                                                                         at com.raizlabs.android.dbflow.sql.SqlUtils.update(SqlUtils.java:288)
                                                                                         at com.raizlabs.android.dbflow.sql.SqlUtils.save(SqlUtils.java:264)
                                                                                         at com.raizlabs.android.dbflow.structure.ModelAdapter.save(ModelAdapter.java:54)
                                                                                         at com.magicmicky.habitrpgwrapper.lib.models.tasks.Task$Adapter.save(Task$Adapter.java:524)
                                                                                         at com.magicmicky.habitrpgwrapper.lib.models.tasks.Task$Adapter.save(Task$Adapter.java:12)
                                                                                         at com.raizlabs.android.dbflow.structure.BaseModel.save(BaseModel.java:50)
                                                                                         at com.magicmicky.habitrpgwrapper.lib.models.tasks.Task.save(Task.java:364)
                                                                                         at com.habitrpg.android.habitica.callbacks.TaskUpdateCallback.success(TaskUpdateCallback.java:22)
                                                                                         at com.habitrpg.android.habitica.callbacks.TaskUpdateCallback.success(TaskUpdateCallback.java:18)
                                                                                         at retrofit.CallbackRunnable$1.run(CallbackRunnable.java:45)
                                                                                         at android.os.Handler.handleCallback(Handler.java:733)
                                                                                         at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                                         at android.os.Looper.loop(Looper.java:136)
                                                                                         at android.app.ActivityThread.main(ActivityThread.java:5001)
                                                                                         at java.lang.reflect.Method.invokeNative(Native Method)
                                                                                         at java.lang.reflect.Method.invoke(Method.java:515)
                                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
                                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
                                                                                         at dalvik.system.NativeStart.main(Native Method)

@negue
Copy link
Member Author

negue commented Nov 17, 2015

@franzejr thats crash seems to be because of me, it has nothing to do with this issue

@franzejr
Copy link
Contributor

@negue , I saw you have created another issue. Should we close this one ?

@negue
Copy link
Member Author

negue commented Nov 17, 2015

nope its just a different one

@franzejr
Copy link
Contributor

@Viirus , @negue, @MagicMicky

Something I figured out:

  1. Open the app
  2. Go to TODO
  3. Click on Todo
  4. Open the TaskFormActivity
  5. Go back and it increases like 20Mb of my Android emulator

Memory graphic:
screenshot 2015-11-29 12 57 57

After some sequence doing like this:
screenshot 2015-11-29 13 02 33

I think this problem is something related what I'm facing here: #53 On #53 Once I save a checkList on the TaskForm and I go back to the MainActivity, it saves a lot of elements..Something weird.

PS: To test that I've used the ExcludeCheckListItem annotation (I think this was other motive it was increasing the memory and it does a stack overflow.

@phillipthelen
Copy link
Member

Don't think this is related to the crash. Also can't seem to reproduce this on my device? It does allocate quite some memory, but deallocates everything when it's closed again.

@franzejr
Copy link
Contributor

Hm...I will try to reproduce it again(I've reproduced some times before posting it here) without the ExcludeCheckListItem annotation, probably this is getting this issue and then I'm having this because of this annotation or something like this. What do you think it's causing this crash(the original one) ?

@phillipthelen
Copy link
Member

I can't reproduce the crash right now either. Potentially it's fixed by some of the edits I made to task updates

@franzejr
Copy link
Contributor

Ok, I will try it again and post it here soon! I remembered the duplicated elements on #53 was before the Annotation, so, I think it was not because of the annotation.

@franzejr
Copy link
Contributor

@Viirus, I just did it again. I got the same error. I've updated my branch, I'm not using nothing about the Annotation, it's totally equal the develop branch. Some problem working if I use dailies rather than TODOS.

I've recorded my screen and you can see it here:

https://youtu.be/OirWDvFjmxQ

I'm using Genymotion with Nexus 6. Should I try in another device ?

@phillipthelen
Copy link
Member

The saving behaves quite different from the way it does on develop. (Or at least for me on develop? ) it kind of looks like it instantiates a new mainsctivity? Because the header animates and it displays habits. Instead it should only display the changed task and not update/reload everything. Not sure if this is caused by differences in the branches (as the sevelop code behaved the same and reloaded everything up until two days ago or so) or genymotion doing something strange.

Sent from my iPhone

On 30 Nov 2015, at 02:15, Franzé Jr. notifications@github.com wrote:

@Viirus, I just did it again. I got the same error. I've updated my branch, I'm not using nothing about the Annotation, it's totally equal the develop branch.

I've recorded my screen and you can see it here:

https://youtu.be/OirWDvFjmxQ

I'm using Genymotion with Nexus 6. Should I try in another device ?


Reply to this email directly or view it on GitHub.

@franzejr
Copy link
Contributor

I'm on the develop branch, I made another video which I re-install the application and I make sure in the video I'm working on the develop branch, also I make sure it was the last commit on the develop branch.

You can check the second video here: https://youtu.be/WU4nQnEJHSI

My genymotion is a Nexus 6 running with Android 5.

@franzejr
Copy link
Contributor

Even on a Nexus 4 (now testing on Nexus 4) it looks like more stable, after some time, it also increases the memory amount as you can see here: https://youtu.be/VYm34PxDqmA

@franzejr
Copy link
Contributor

@Viirus, your commit here : 60d68ef

Solved the problem! 🎱

Now, you can see the graphic:
screenshot 2015-11-30 20 13 56

I've opened and closed the daily several times.

@negue negue modified the milestone: 1.0 Dec 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants