[TIMOB-9726] Android: Tableview:Softkeyboard waits for 'focus' alert to get dismissed to get hide.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 2.1.0, Release 3.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | api, qe-and060112 |
Reporter | Shyam Bhadauria |
Assignee | Unknown |
Created | 2012-06-22T06:34:40.000+0000 |
Updated | 2018-02-28T20:03:40.000+0000 |
Description
This is not a regression.It exists as far as 1.8.2
It is not reproducible on Android 3.2 samsung galaxy tab 620,Android 4.0.2 samsung galaxy nexus.
Steps to reproduce:
1) Use the code below:
var win = Ti.UI.createWindow({
softInputMode : (Titanium.UI.Android) ? Ti.UI.Android.SOFT_INPUT_ADJUST_PAN : '',
windowSoftInputMode : (Titanium.UI.Android) ? Ti.UI.Android.SOFT_INPUT_ADJUST_PAN : ''
});
var tf1 = null;
function addRow() {
var row = Ti.UI.createTableViewRow({
backgroundColor: "#000",
height : 80
});
tf1 = Titanium.UI.createTextField({
backgroundColor: "#fff",
width : 250,
height : 80,
focusable : true,
returnKeyType : Titanium.UI.RETURNKEY_DONE,
autocorrect : false,
suppressReturn : true,
});
tf1.addEventListener('focus', function() {
alert('Focus fired');
});
row.add(tf1);
return row;
}
var data = [];
for(var x = 0; x < 10; x++) {
data[x] = addRow();
}
var tableView = Ti.UI.createTableView({
data : data,
});
Ti.Gesture.addEventListener('orientationchange',function(){
tf1.blur();
alert('blur fired');
})
win.add(tableView);
win.open();
2) Run the app in portrait mode.
3) Click on any row of the tableview.
4) WITHOUT clicking ok on the focus alert,rotate the device to landscape mode.
Expected result:
2) After step 2, app should be running with tableview shown along with 10 rows.
3) 'Focus fired' alert and soft keyboard should be displayed.
4) 'Blur fired' alert should be displayed and soft keyboard should be hidden.
Actual result:
2) After step 2, app gets running with tableview shown along with 10 rows.
3) 'Focus fired' alert and soft keyboard gets displayed.
4) 'Blur fired' alert is displayed and soft keyboard do not hide.
Issue - Softkeyboard waits for 'focus fired' alert to get dismissed.After user clicks ok on alert,softkeyboard hides.
Issue reproduces with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) Device: Samsung galaxy s duos Android version: 4.0.4