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:
parent
d952629ac2
commit
cd2a35d6b7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user