|
@@ -118,7 +118,8 @@ public class RnnToolBar extends Toolbar {
|
118
|
118
|
ActionBar actionBar = ((AppCompatActivity) getContext()).getSupportActionBar();
|
119
|
119
|
if (actionBar != null) {
|
120
|
120
|
actionBar.setShowHideAnimationEnabled(animated);
|
121
|
|
- actionBar.show();
|
|
121
|
+ // We hide the ToolBar's parent (AppBarLayout) since this animates the shadow added by AppBar as well
|
|
122
|
+ ((View) getParent()).setVisibility(VISIBLE);
|
122
|
123
|
}
|
123
|
124
|
}
|
124
|
125
|
|
|
@@ -126,7 +127,8 @@ public class RnnToolBar extends Toolbar {
|
126
|
127
|
ActionBar actionBar = ((AppCompatActivity) getContext()).getSupportActionBar();
|
127
|
128
|
if (actionBar != null) {
|
128
|
129
|
actionBar.setShowHideAnimationEnabled(animated);
|
129
|
|
- actionBar.hide();
|
|
130
|
+ // We hide the ToolBar's parent (AppBarLayout) since this animates the shadow added by AppBar as well
|
|
131
|
+ ((View) getParent()).setVisibility(GONE);
|
130
|
132
|
}
|
131
|
133
|
}
|
132
|
134
|
|