Skip to content

Commit 02d8c86

Browse files
Matthew KevinsMatthew Kevins
authored andcommitted
Use badge directly instead of badge footer
1 parent b98c7cf commit 02d8c86

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

WordPress/src/main/java/org/wordpress/android/ui/publicize/PublicizeListFragment.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
136136
}
137137

138138
if (mJetpackBrandingUtils.shouldShowJetpackBranding()) {
139-
View jetpackBadgeFooter = rootView.findViewById(R.id.jetpack_badge_footer);
140-
jetpackBadgeFooter.setVisibility(View.VISIBLE);
139+
View jetpackBadge = rootView.findViewById(R.id.jetpack_badge_sharing);
140+
jetpackBadge.setVisibility(View.VISIBLE);
141141

142142
if (mJetpackBrandingUtils.shouldShowJetpackPoweredBottomSheet()) {
143-
jetpackBadgeFooter.setOnClickListener(v -> {
143+
jetpackBadge.setOnClickListener(v -> {
144144
mJetpackBrandingUtils.trackBannerTapped(Screen.SHARE);
145145
new JetpackPoweredBottomSheetFragment()
146146
.show(requireActivity().getSupportFragmentManager(), JetpackPoweredBottomSheetFragment.TAG);

WordPress/src/main/res/layout/publicize_list_fragment.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,11 @@
114114
</RelativeLayout>
115115

116116
<include
117-
android:id="@+id/jetpack_badge_footer"
118-
layout="@layout/jetpack_badge_footer"
117+
android:id="@+id/jetpack_badge_sharing"
118+
layout="@layout/jetpack_badge"
119119
android:visibility="gone"
120+
android:layout_width="match_parent"
121+
android:layout_height="wrap_content"
120122
tools:visibility="visible" />
121123

122124
</LinearLayout>

0 commit comments

Comments
 (0)