spacecowboy / NotePad

Now under new management
GNU General Public License v3.0
382 stars 158 forks source link

App still uses deprecated APIs #380

Open LiliWeiSE opened 7 years ago

LiliWeiSE commented 7 years ago

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!

licaon-kter commented 7 years ago

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.

CampelloManuel commented 7 months ago

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