Commit 9b547e72 authored by Grigory Fedorov's avatar Grigory Fedorov

ContactTitleExpandableToolbarInflater: contact info updated every resume.

parent 7ac1cf82
......@@ -43,12 +43,15 @@ public class ContactTitleExpandableToolbarInflater implements ObservableScrollVi
private int contactTitlePaddingBottomBig;
private int contactTitlePaddingBottomSmall;
private Toolbar toolbar;
private AbstractContact abstractContact;
public ContactTitleExpandableToolbarInflater(AppCompatActivity activity) {
this.activity = activity;
}
public void onCreate(AbstractContact abstractContact) {
this.abstractContact = abstractContact;
activity.setContentView(R.layout.expandable_contact_title_activity);
toolbar = (Toolbar) activity.findViewById(R.id.toolbar_overlay);
......@@ -96,6 +99,8 @@ public class ContactTitleExpandableToolbarInflater implements ObservableScrollVi
updateFlexibleSpaceText(scrollView.getCurrentScrollY());
}
});
ContactTitleInflater.updateTitle(titleView, activity, abstractContact);
}
protected int getActionBarSize() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment