|
3 | 3 | import android.app.ProgressDialog; |
4 | 4 | import android.os.Bundle; |
5 | 5 | import android.view.MenuItem; |
6 | | -import android.view.View; |
7 | | -import android.view.ViewGroup.MarginLayoutParams; |
8 | 6 |
|
9 | 7 | import androidx.appcompat.app.ActionBar; |
10 | 8 | import androidx.appcompat.app.AlertDialog; |
|
32 | 30 | import org.wordpress.android.ui.ActivityLauncher; |
33 | 31 | import org.wordpress.android.ui.LocaleAwareActivity; |
34 | 32 | import org.wordpress.android.ui.ScrollableViewInitializedListener; |
35 | | -import org.wordpress.android.ui.mysite.jetpackbadge.JetpackPoweredBottomSheetFragment; |
36 | 33 | import org.wordpress.android.ui.publicize.PublicizeConstants.ConnectAction; |
37 | 34 | import org.wordpress.android.ui.publicize.adapters.PublicizeServiceAdapter; |
38 | 35 | import org.wordpress.android.ui.publicize.services.PublicizeUpdateService; |
39 | 36 | import org.wordpress.android.util.JetpackBrandingUtils; |
40 | | -import org.wordpress.android.util.JetpackBrandingUtils.Screen; |
41 | 37 | import org.wordpress.android.util.SiteUtils; |
42 | 38 | import org.wordpress.android.util.ToastUtils; |
43 | 39 | import org.wordpress.android.util.analytics.AnalyticsUtils; |
@@ -82,25 +78,6 @@ public void onCreate(Bundle savedInstanceState) { |
82 | 78 |
|
83 | 79 | mAppBarLayout = findViewById(R.id.appbar_main); |
84 | 80 |
|
85 | | - if (mJetpackBrandingUtils.shouldShowJetpackBranding()) { |
86 | | - View jetpackBanner = findViewById(R.id.jetpack_banner); |
87 | | - jetpackBanner.setVisibility(View.VISIBLE); |
88 | | - mJetpackBrandingUtils.setNavigationBarColorForBanner(getWindow()); |
89 | | - |
90 | | - // Add bottom margin to content. |
91 | | - MarginLayoutParams layoutParams = |
92 | | - (MarginLayoutParams) findViewById(R.id.fragment_container).getLayoutParams(); |
93 | | - layoutParams.bottomMargin = getResources().getDimensionPixelSize(R.dimen.jetpack_banner_height); |
94 | | - |
95 | | - if (mJetpackBrandingUtils.shouldShowJetpackPoweredBottomSheet()) { |
96 | | - jetpackBanner.setOnClickListener(v -> { |
97 | | - mJetpackBrandingUtils.trackBannerTapped(Screen.SHARE); |
98 | | - new JetpackPoweredBottomSheetFragment() |
99 | | - .show(getSupportFragmentManager(), JetpackPoweredBottomSheetFragment.TAG); |
100 | | - }); |
101 | | - } |
102 | | - } |
103 | | - |
104 | 81 | if (savedInstanceState == null) { |
105 | 82 | mSite = (SiteModel) getIntent().getSerializableExtra(WordPress.SITE); |
106 | 83 | PublicizeTable.createTables(WordPress.wpDB.getDatabase()); |
|
0 commit comments