Compare commits
1 Commits
pureos/1.1
...
hintclear
| Author | SHA1 | Date | |
|---|---|---|---|
| 914c5d4940 |
@ -151,17 +151,22 @@ pub mod c {
|
|||||||
|
|
||||||
if active_changed {
|
if active_changed {
|
||||||
(imservice.active_callback)(imservice.current.active);
|
(imservice.active_callback)(imservice.current.active);
|
||||||
if imservice.current.active {
|
let (hint, purpose) = if imservice.current.active {(
|
||||||
|
imservice.current.content_hint,
|
||||||
|
imservice.current.content_purpose.clone(),
|
||||||
|
)} else {(
|
||||||
|
ContentHint::NONE,
|
||||||
|
ContentPurpose::Normal,
|
||||||
|
)};
|
||||||
unsafe {
|
unsafe {
|
||||||
eekboard_context_service_set_hint_purpose(
|
eekboard_context_service_set_hint_purpose(
|
||||||
imservice.state_manager,
|
imservice.state_manager,
|
||||||
imservice.current.content_hint.bits(),
|
hint.bits(),
|
||||||
imservice.current.content_purpose.clone() as u32,
|
purpose as u32,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: this is really untested
|
// TODO: this is really untested
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
|
|||||||
Reference in New Issue
Block a user