Null checking
This commit is contained in:
1 parent
a9dd8c9dc3
commit
d5d06d3c0b
1 file changed
+2
-2
@@ -137,9 +137,9 @@ public class SongListPageFragment extends Fragment {
|
|||||||
activity.getSupportActionBar().setDisplayShowHomeEnabled(true);
|
activity.getSupportActionBar().setDisplayShowHomeEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
bind.toolbar.setNavigationOnClickListener(v -> activity.navController.navigateUp());
|
if (bind != null) bind.toolbar.setNavigationOnClickListener(v -> activity.navController.navigateUp());
|
||||||
|
|
||||||
bind.appBarLayout.addOnOffsetChangedListener((appBarLayout, verticalOffset) -> {
|
if (bind != null) bind.appBarLayout.addOnOffsetChangedListener((appBarLayout, verticalOffset) -> {
|
||||||
if ((bind.albumInfoSector.getHeight() + verticalOffset) < (2 * ViewCompat.getMinimumHeight(bind.toolbar))) {
|
if ((bind.albumInfoSector.getHeight() + verticalOffset) < (2 * ViewCompat.getMinimumHeight(bind.toolbar))) {
|
||||||
bind.toolbar.setTitle(songListPageViewModel.toolbarTitle);
|
bind.toolbar.setTitle(songListPageViewModel.toolbarTitle);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user