Skip to content
This repository has been archived by the owner on Nov 9, 2018. It is now read-only.

Commit

Permalink
Corrected views visibility on hide bubbles
Browse files Browse the repository at this point in the history
Auditors: @bbondy
  • Loading branch information
SergeyZhukovsky committed Sep 12, 2016
1 parent 9cf1e7a commit 59b9b73
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ private void setContentView(TabView bubble, boolean unhideNotification) {
if (mExpanded) {
applyContentViewAlpha(1);
}
else {
mContentView.setAlpha(0f);
mContentView.setVisibility(GONE);
}
mContentView.onCurrentContentViewChanged(false);
}

Expand All @@ -350,7 +354,6 @@ private void setContentView(TabView bubble, boolean unhideNotification) {
//}

//Log.d("blerg", "setContentView(): from " + (mContentView != null ? "valid" : "none") + " to " + (contentView != null ? "valid" : "none"));

mContentView = contentView;
if (unhideNotification) {
return;
Expand Down Expand Up @@ -511,6 +514,7 @@ public void onBeginAnimateFinalTabAway(MainController.BeginAnimateFinalTabAwayEv
@SuppressWarnings("unused")
@Subscribe
public void onHideContentEvent(MainController.HideContentEvent event) {
mExpanded = false;
setContentView(null, false);
}

Expand Down

1 comment on commit 59b9b73

@bbondy
Copy link
Member

@bbondy bbondy commented on 59b9b73 Sep 12, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Please sign in to comment.