GithubHelp home page GithubHelp logo

Comments (4)

eclairevoyant avatar eclairevoyant commented on July 23, 2024 1

@Bnyro This is still a bug as of version 3.1 (on Android 13) and is reliably reproducible.

Steps to reproduce:

  1. Click pencil icon
  2. Search for timezone (e.g. Melbourne)
  3. Check box
    • Timezone gets added
  4. Click pencil icon
  5. Search for same timezone (e.g. Melbourne)
    • Box still appears unchecked (!) - bug 1
  6. Check box
    • Timezone is removed, but app crashes - bug 2

Stacktrace:

FATAL EXCEPTION: DefaultDispatcher-worker-1
Process: com.bnyro.clock, PID: 31657
android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: timeZones.name (code 1555 SQLITE_CONSTRAINT_PRIMARYKEY)
	at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
	at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:961)
	at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:790)
	at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:89)
	at x3.g.P(Unknown Source:2)
	at f4.d$d.call(SourceFile:62)
	at s3.b.k(Unknown Source:5)
	at x5.a.m(Unknown Source:8)
	at m6.i0.run(Unknown Source:100)
	at q3.c.run(SourceFile:85)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
	at java.lang.Thread.run(Thread.java:1012)
	Suppressed: m6.g0: [p1{Cancelling}@ff6b66f, Dispatchers.IO]

I would also suggest pushing the already-checked timezones to the top so they can be easily unselected by the user instead of having to search.

from clockyou.

Bnyro avatar Bnyro commented on July 23, 2024

You can the same way you enabled them.

from clockyou.

serrq avatar serrq commented on July 23, 2024

You can the same way you enabled them.

Got it. The first time I have unselected one item, the app crashed and all clock cards have been deleted.

Afterwards this event I selected multiple cards and I hadn't any issue.

What could have produced that sudden crash and loss of selections?

from clockyou.

serrq avatar serrq commented on July 23, 2024

I would also suggest pushing the already-checked timezones to the top so they can be easily unselected by the user instead of having to search.

I agree.

from clockyou.

Related Issues (20)

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.