diff --git a/WordPress/src/main/java/org/wordpress/android/ui/mysite/MySiteFragment.kt b/WordPress/src/main/java/org/wordpress/android/ui/mysite/MySiteFragment.kt index 37f16255ace6..149194fcc68a 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/mysite/MySiteFragment.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/mysite/MySiteFragment.kt @@ -828,7 +828,10 @@ class MySiteFragment : Fragment(R.layout.my_site_fragment), val context = activity ?: return val options = UCrop.Options() options.setShowCropGrid(false) - // TODO options.setStatusBarColor(context.getColorFromAttribute(android.R.attr.statusBarColor)) + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.VANILLA_ICE_CREAM) { + @Suppress("DEPRECATION") + options.setStatusBarColor(context.getColorFromAttribute(android.R.attr.statusBarColor)) + } options.setToolbarColor(context.getColorFromAttribute(R.attr.wpColorAppBar)) options.setToolbarWidgetColor(context.getColorFromAttribute(com.google.android.material.R.attr.colorOnSurface)) options.setAllowedGestures(UCropActivity.SCALE, UCropActivity.NONE, UCropActivity.NONE)