Coder Social home page Coder Social logo

Comments (5)

dnbit avatar dnbit commented on July 18, 2024

@ZeGerm4n
You are using custom ROMs in your devices. In order to verify that everything would work properly in every single non-stock ROM and device combination, we would need to have every physical device and non-stock ROM combination, plus various lifetimes of testing.

Because the Android platform is open and implementers are free to make a lot of decisions on their own, sometimes there are differences between ROMs that can be difficult to debug.

from kotlin-notepad.

ZeGerm4n avatar ZeGerm4n commented on July 18, 2024

Just tried running the project on Emulator images with API versions 22, 23, 25, 27. All of them where default set-ups of virtual google Nexus devices available for selection in AVD Manager. I noticed that all of these had this issue. The Oreo one (of which I previously thought it had no issues) seems to encounter this problem too, but less frequently. Seems like it has nothing to do with the custom ROMs I use on the real devices :/ I would be very grateful if someone could check what might cause the problem, as of I am not familiar enough with android development to do it myself.

from kotlin-notepad.

ZeGerm4n avatar ZeGerm4n commented on July 18, 2024

In case someone encounters the same problem:
On the edge of despair I did following... I "fixed" the behaviour by using startActivityForResult() to call CreateActivity. In CreateActivity I query the new item count in the database after inserting a new item and pass that integer in setResult() before finishing the Activity. Back in MainActivity, in onActivityResult() I compare the the item count of the database with the item count in RecyclerViewAdapter and finally call refresh if those values are unequal

from kotlin-notepad.

dnbit avatar dnbit commented on July 18, 2024

That's an overkill @ZeGerm4n You should not need to do that.
I have tried in various versions and it works for me. It seems that I cannot reproduce it.
In which branch do you see the error? Any tips to reproduce it?

from kotlin-notepad.

ZeGerm4n avatar ZeGerm4n commented on July 18, 2024

I encountered the problem on the 'final' branch. Last time I could reproduce it was by killing the App completely then restarting it and trying to add multiple items. After creating 1-3 items the newest one would only be displayed after adding another one. I just tried to reproduce it again, but the closest I could get to above described behaviour was that the RecyclerView took a second to display the newly created item. I'm baffled, have no idea what could have been the culprit and why I cannot reproduce that error anymore o_O anyway thank you for looking into it

from kotlin-notepad.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.