forked from upstream-mirrors/quik
Fix wrong activity title being set
This commit is contained in:
@@ -197,6 +197,10 @@ public class MainActivity extends QKActivity implements SlidingMenu.SlidingMenuL
|
|||||||
mSlidingMenu.showMenu();
|
mSlidingMenu.showMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public SlidingMenu getSlidingMenu() {
|
||||||
|
return mSlidingMenu;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configured the sliding menu view to peek the content or not.
|
* Configured the sliding menu view to peek the content or not.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -291,7 +291,7 @@ public class MessageListFragment extends QKContentFragment implements ActivityLa
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setTitle() {
|
private void setTitle() {
|
||||||
if (mContext != null && mConversation != null) {
|
if (mContext != null && mConversation != null && !((MainActivity) mContext).getSlidingMenu().isMenuShowing()) {
|
||||||
mContext.setTitle(mConversation.getRecipients().formatNames(", "));
|
mContext.setTitle(mConversation.getRecipients().formatNames(", "));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user