File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
WordPress/src/main/java/org/wordpress/android/ui/reader Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -507,15 +507,15 @@ public void onCreate(Bundle savedInstanceState) {
507
507
private void toggleJetpackBannerIfEnabled (final boolean showIfEnabled , boolean animateOnScroll ) {
508
508
if (!isAdded () || getView () == null || !isSearching ()) return ;
509
509
510
- if (animateOnScroll ) {
511
- RecyclerView scrollView = mRecyclerView .getInternalRecyclerView ();
512
- mJetpackBrandingUtils .showJetpackBannerIfScrolledToTop (mJetpackBanner , scrollView );
513
- mJetpackBrandingUtils .setNavigationBarColorForBanner (requireActivity ().getWindow ());
514
- // Return early since the banner visibility was handled by showJetpackBannerIfScrolledToTop
515
- return ;
516
- }
517
-
518
510
if (mJetpackBrandingUtils .shouldShowJetpackBranding ()) {
511
+ if (animateOnScroll ) {
512
+ RecyclerView scrollView = mRecyclerView .getInternalRecyclerView ();
513
+ mJetpackBrandingUtils .showJetpackBannerIfScrolledToTop (mJetpackBanner , scrollView );
514
+ mJetpackBrandingUtils .setNavigationBarColorForBanner (requireActivity ().getWindow ());
515
+ // Return early since the banner visibility was handled by showJetpackBannerIfScrolledToTop
516
+ return ;
517
+ }
518
+
519
519
if (showIfEnabled && !mDisplayUtilsWrapper .isPhoneLandscape ()) {
520
520
showJetpackBanner ();
521
521
} else {
You can’t perform that action at this time.
0 commit comments