[TIMOB-8860] Android: Window: Opening new window when keyboard is up fails to hide keyboard
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-07-12T20:43:13.000+0000 |
Affected Version/s | Release 2.0.2, Release 2.0.1, Release 3.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | api, parity |
Reporter | Dustin Hyde |
Assignee | Eric Merriman |
Created | 2012-04-23T12:08:49.000+0000 |
Updated | 2017-07-12T20:43:13.000+0000 |
Description
If the keyboard is up and a new window is opened, the keyboard fails to hide.
This does not occur on iOS. Marking as a parity issue.
This is not a regression.
Steps to Reproduce:
1. Run code.
var win = Ti.UI.createWindow({
backgroundColor:'blue',
orientationModes:[Ti.UI.PORTRAIT, Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT]
});
var textField = Ti.UI.createTextField({
backgroundColor:'white',
value:'TextField',
top:'40%',
bottom:'40%',
left:'10%',
right:'10%',
textAlign:Ti.UI.TEXT_ALIGNMENT_CENTER
});
win.add(textField);
var button = Ti.UI.createButton({
title:'Open New Window',
backgroundColor:'white',
top:'10%',
left:'10%',
right:'10%',
height:'20%',
textAlign:Ti.UI.TEXT_ALIGNMENT_CENTER
});
var subWin = Ti.UI.createWindow({
backgroundColor:'green'
});
var subButton = Ti.UI.createButton({
title:'Close',
top:'40%',
bottom:'40%',
left:'20%',
right:'20%'
});
button.addEventListener('click', function(){
subWin.open();
});
win.add(button);
subWin.add(subButton);
subButton.addEventListener('click', function(){
subWin.close();
});
win.open();
2. Click on text field to bring up keyboard.
3. Press 'open window' to open a new window.
Expected Result:
New window should open, keyboard should hide.
Actual Result:
New window opens, keyboard stays up.
issue reproduces with sdk 3.0.2 and 3.1.0 .
Verifying that has been fixed as I am unable to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131