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
|
@Override
|
||||||
protected void onAttachedToWindow() {
|
protected void onAttachedToWindow() {
|
||||||
super.onAttachedToWindow();
|
super.onAttachedToWindow();
|
||||||
if (!isInEditMode() && mAdapter == null || mAdapter.isCursorClosed()) {
|
if (!isInEditMode() && (mAdapter == null || mAdapter.isCursorClosed())) {
|
||||||
mAdapter = new UserHashtagAutoCompleteAdapter(this);
|
mAdapter = new UserHashtagAutoCompleteAdapter(this);
|
||||||
}
|
}
|
||||||
setAdapter(mAdapter);
|
setAdapter(mAdapter);
|
||||||
|
|
Loading…
Reference in New Issue