Merge "Add final and volatile for members of InputLogic."
This commit is contained in:
commit
485c1ec685
1 changed files with 3 additions and 2 deletions
|
@ -77,9 +77,10 @@ public final class InputLogic {
|
||||||
public int mSpaceState;
|
public int mSpaceState;
|
||||||
// Never null
|
// Never null
|
||||||
public SuggestedWords mSuggestedWords = SuggestedWords.EMPTY;
|
public SuggestedWords mSuggestedWords = SuggestedWords.EMPTY;
|
||||||
public Suggest mSuggest;
|
// TODO: mSuggest should be touched by a single thread.
|
||||||
|
public volatile Suggest mSuggest;
|
||||||
// The event interpreter should never be null.
|
// The event interpreter should never be null.
|
||||||
public EventInterpreter mEventInterpreter;
|
public final EventInterpreter mEventInterpreter;
|
||||||
|
|
||||||
public LastComposedWord mLastComposedWord = LastComposedWord.NOT_A_COMPOSED_WORD;
|
public LastComposedWord mLastComposedWord = LastComposedWord.NOT_A_COMPOSED_WORD;
|
||||||
public final WordComposer mWordComposer;
|
public final WordComposer mWordComposer;
|
||||||
|
|
Loading…
Reference in a new issue