1. 18 May, 2019 7 commits
  2. 10 May, 2019 1 commit
  3. 16 Mar, 2019 1 commit
  4. 15 Jan, 2019 1 commit
  5. 14 Jan, 2019 1 commit
  6. 12 Jan, 2019 1 commit
  7. 06 Jan, 2019 12 commits
  8. 05 Jan, 2019 3 commits
  9. 04 Jan, 2019 7 commits
    • jens stein's avatar
      ed094ccf
    • jens stein's avatar
      Update schedule object with generated id · a5a873eb
      jens stein authored
      So that the tag set on the views correspond to the generated id and not
      the temporary id 0 which was set on the schedule to begin with.
      a5a873eb
    • jens stein's avatar
      Use a sparse array for handling generated views · 0e5b9b74
      jens stein authored
      Because the schedule ids in the preferences-backed logic are always in a
      range without gaps the old implementation where views are stored in a
      list works since ids and list indices correspond automatically.
      The schedule ids in the database-backed logic on the other hand will not
      have that relationship to the list indices since there will be gaps
      between assigned ids when entities are deleted in the database.
      Therefore a map is more suitable for storing the views in the future.
      
      This change exposes the problem where the `long` ids have to be cast to
      `int` to fit into some of the AlarmManager methods later in the flow.
      This will probably never be a problem in actual use cases (since you can
      add and remove schedules a _lot_ of times before the long cannot be cast
      to an int any longer) but should still be fixed.
      0e5b9b74
    • jens stein's avatar
      Add methods to delete single schedule · d5a30d55
      jens stein authored
      d5a30d55
    • jens stein's avatar
      Add ui-building task for new db-backed schedules · 4bbb4646
      jens stein authored
      Since inserting into the database requires io operations it must be done
      on a thread separate from the ui thread.
      4bbb4646
    • jens stein's avatar
      Add private constructor to database helper · 48f11bf6
      jens stein authored
      Because it's not meant to be instantiated.
      48f11bf6
    • jens stein's avatar
      Declare sql exception thrown on inserts · 64ea0eef
      jens stein authored
      Even if android.database.SQLException is a runtime exception it's
      declared here to be sure it's caught everywhere a schedule is inserted.
      64ea0eef
  10. 03 Jan, 2019 2 commits
  11. 02 Jan, 2019 4 commits