[TIMOB-26952] Android: Verify that Ti.UI.Android.openPreferences() works on Android Q
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-08-16T21:03:02.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 8.3.0 |
Components | Android |
Labels | android, preferences |
Reporter | Joshua Quick |
Assignee | Gary Mathews |
Created | 2019-03-29T20:56:59.000+0000 |
Updated | 2019-08-16T21:03:06.000+0000 |
Description
Android Q is deprecating the "android.preference" library which Titanium's
Ti.UI.Android.openPreferences()
API uses.
https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Android-method-openPreferences
https://developer.android.com/preview/behavior-changes-all#preferences
Google's docs suggests that "android.preference" library is deprecated, not removed. So, we should first check that the deprecated usage still works while targeting API Level 29.
The best solution is to change Titanium to depend on the AndroidX libraries instead of the older Support libraries per [TIMOB-26472]. This is a much bigger change that effects all modules that we may want to defer to a later date.
Confirmed the example for [Ti.UI.Android.openPreferences](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Android-method-openPreferences) functions as intended when built and ran targeting SDK API 29.