1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2024-12-18 19:43:35 +01:00

fixed NPE of StatusComposeEditText in preview mode

This commit is contained in:
Mariotaku Lee 2015-04-04 00:02:37 +08:00
parent d952629ac2
commit cd2a35d6b7

View File

@ -64,7 +64,7 @@ public class StatusComposeEditText extends ThemedMultiAutoCompleteTextView imple
@Override
protected void onAttachedToWindow() {
super.onAttachedToWindow();
if (!isInEditMode() && mAdapter == null || mAdapter.isCursorClosed()) {
if (!isInEditMode() && (mAdapter == null || mAdapter.isCursorClosed())) {
mAdapter = new UserHashtagAutoCompleteAdapter(this);
}
setAdapter(mAdapter);