@@ -177,8 +177,8 @@ public ActivityViewModel onActivityCreated(Context context) {
177
177
recyclerViewBuilder = new RecyclerViewBuilder (context );
178
178
toaster = new Toaster (context );
179
179
180
- // appBarLayout = getActivity().findViewById(R.id.main_activity_app_bar_layout);
181
- // toolbar = getActivity().findViewById(R.id.main_activity_toolbar);
180
+ appBarLayout = getActivity ().findViewById (R .id .main_activity_app_bar_layout );
181
+ toolbar = getActivity ().findViewById (R .id .main_activity_toolbar );
182
182
privacyConsentLinearLayout = getActivity ().findViewById (R .id .main_activity_privacy_consent_linear_layout );
183
183
nestedScrollView = getActivity ().findViewById (R .id .main_activity_nested_scroll_view );
184
184
@@ -301,8 +301,8 @@ public ActivityViewModel setupInterfaceElements() {
301
301
302
302
@ Override
303
303
public void setupToolbar () {
304
- // toolbar.setTitle(Text.EMPTY);
305
- // getAppCompatActivity().setSupportActionBar(toolbar);
304
+ toolbar .setTitle (Text .EMPTY );
305
+ getAppCompatActivity ().setSupportActionBar (toolbar );
306
306
}
307
307
308
308
@ Override
@@ -342,7 +342,7 @@ private void setupConsentLayout(boolean hasConsent) {
342
342
int scrollVisibility = hasConsent ? View .VISIBLE : View .GONE ;
343
343
privacyConsentLinearLayout .setVisibility (consentVisibility );
344
344
nestedScrollView .setVisibility (scrollVisibility );
345
- // appBarLayout.setExpanded(true);
345
+ appBarLayout .setExpanded (true );
346
346
347
347
privacyConsentAllowButton .setOnClickListener (v -> {
348
348
togglePrivacyConsent (true );
@@ -738,7 +738,7 @@ public boolean scrollToTopIfAvailable() {
738
738
if (shouldScrollTop ) {
739
739
if (nestedScrollView != null ) {
740
740
nestedScrollView .smoothScrollTo (0 , 0 );
741
- // appBarLayout.setExpanded(true);
741
+ appBarLayout .setExpanded (true );
742
742
}
743
743
}
744
744
return shouldScrollTop ;
@@ -759,7 +759,7 @@ private void togglePrivacyConsent(boolean hasConsent) {
759
759
privacyConsentLinearLayout .setVisibility (consentVisibility );
760
760
nestedScrollView .setVisibility (scrollVisibility );
761
761
762
- // appBarLayout.setExpanded(true);
762
+ appBarLayout .setExpanded (true );
763
763
}
764
764
765
765
}
0 commit comments