Skip to content

App still uses deprecated APIs #380

Open

Description

@LiliWeiSE

Hi,

I just noticed that class android.text.format.Time is used at many places. Eg, line 345 in MonthView.java, line 89 in MonthAdapter, etc.

This class has been deprecated for multiple problems (see: https://developer.android.com/reference/android/text/format/Time.html)

Although it may not induce problems for now, I think it'd better to use other alternative classes to avoid future bugs.

Thanks!

Activity

  1. licaon-kter commented on May 11, 2017

    @licaon-kter

    Yeah, so many issue, great app, too bad it's not developed anymore.

    Check out Orgzly, they already merged reminders o I guess I'll jump ship. BTW, you can import these notes in Orgzly, albeit with a caveat that I forget now.

  2. added
    secondary
    on Jan 7, 2023
  3. CampelloManuel commented on Jan 13, 2024

    @CampelloManuel
    Collaborator

    Google recommends using GregorianCalendar https://developer.android.com/reference/java/util/GregorianCalendar instead of android.text.format.Time which we use. A limit of that class is that it can't represent dates after 2038. So replacing Time is important, even more than other deprecated classes used in the codebase

  4. added
    bug
    and removed
    secondary
    on Jan 13, 2024
  5. changed the title [-]Class android.text.format.Time has been deprecated since API 22[/-] [+]App still uses deprecated APIs[/+] on Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions