mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix a native crash in AOSP LatinIME
bug: 8597610 Change-Id: I585c629636a52a1ac45b8cc686bc94427bb601df
This commit is contained in:
parent
58df3cfaee
commit
4fffa27d3f
@ -42,8 +42,9 @@ class Weighting;
|
||||
class Suggest : public SuggestInterface {
|
||||
public:
|
||||
AK_FORCE_INLINE Suggest(const SuggestPolicy *const suggestPolicy)
|
||||
: TRAVERSAL(suggestPolicy->getTraversal()),
|
||||
SCORING(suggestPolicy->getScoring()), WEIGHTING(suggestPolicy->getWeighting()) {}
|
||||
: TRAVERSAL(suggestPolicy ? suggestPolicy->getTraversal() : 0),
|
||||
SCORING(suggestPolicy ? suggestPolicy->getScoring() : 0),
|
||||
WEIGHTING(suggestPolicy ? suggestPolicy->getWeighting() : 0) {}
|
||||
AK_FORCE_INLINE virtual ~Suggest() {}
|
||||
int getSuggestions(ProximityInfo *pInfo, void *traverseSession, int *inputXs, int *inputYs,
|
||||
int *times, int *pointerIds, int *inputCodePoints, int inputSize, int commitPoint,
|
||||
|
Loading…
x
Reference in New Issue
Block a user