NotePad icon indicating copy to clipboard operation
NotePad copied to clipboard

App still uses deprecated APIs

Open LiliWeiSE opened this issue 7 years ago • 2 comments

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!

LiliWeiSE avatar May 11 '17 11:05 LiliWeiSE

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.

licaon-kter avatar May 11 '17 13:05 licaon-kter

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

CampelloManuel avatar Jan 13 '24 16:01 CampelloManuel