Android Lint complain about assert()
being used, and recommend using BuildConfig.DEBUG conditional checks instead.
I understood perfectly why assert are not safe to use on android, but what exactly are "BuildConfig.DEBUG conditional checks" ?
How would the following example code be amended ?
Context ctx = getContext();
assert (ctx instanceof FragmentActivity);
fragment_manager = ((FragmentActivity) ctx).getSupportFragmentManager();