Compare commits
	
		
			1 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 914c5d4940 | 
@ -151,14 +151,19 @@ 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 {(
 | 
				
			||||||
                unsafe {
 | 
					                imservice.current.content_hint,
 | 
				
			||||||
                    eekboard_context_service_set_hint_purpose(
 | 
					                imservice.current.content_purpose.clone(),
 | 
				
			||||||
                        imservice.state_manager,
 | 
					            )} else {(
 | 
				
			||||||
                        imservice.current.content_hint.bits(),
 | 
					                ContentHint::NONE,
 | 
				
			||||||
                        imservice.current.content_purpose.clone() as u32,
 | 
					                ContentPurpose::Normal,
 | 
				
			||||||
                    );
 | 
					            )};
 | 
				
			||||||
                }
 | 
					            unsafe {
 | 
				
			||||||
 | 
					                eekboard_context_service_set_hint_purpose(
 | 
				
			||||||
 | 
					                    imservice.state_manager,
 | 
				
			||||||
 | 
					                    hint.bits(),
 | 
				
			||||||
 | 
					                    purpose as u32,
 | 
				
			||||||
 | 
					                );
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user