Is it safe to use @SuppressLint("RestrictedApi") with AndroidX libraries?
I would like to know whether it is safe or not to use @SuppressLint("RestrictedApi") annotation. I am pretty sure that the answer is NO, so I want to ask why as well. I guess that the development team wanted to hide such "restricted code" from the API users. Probably due to changes in the future or because the code is intended to work as internal functionality Example code with androidx.preference:preference:1.1.1: public abstract class CustomAdapterPreferenceFragment extends PreferenceFragmentCompat { @Override protected PreferenceGroupAdapter onCreateAdapter(PreferenceScreen preferenceScreen
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.