Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23474] Android: Ti.UI.AlertDialog.get/setTitleid() methods missing

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2016-06-30T23:04:05.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.0.0
ComponentsAndroid
Labelsandroid, parity
ReporterChristopher Williams
AssigneeHans Knöchel
Created2016-06-03T18:38:43.000+0000
Updated2016-08-19T00:03:59.000+0000

Description

This is a parity issue since we have similar getters/setters for other translation properties on other proxies. Note that we also do not have a get/setOkid() or get/setMessageid().

Comments

  1. Hans Knöchel 2016-06-05

    PR: https://github.com/appcelerator/titanium_mobile/pull/8042 Example project: https://www.dropbox.com/s/x9hv3zgw1xdq6vl/test.zip?dl=0 Demo:
       
       var win1 = Titanium.UI.createWindow({  
           title:'Tab 1',
           backgroundColor:'#fff'
       });
       win1.open();
       
       setTimeout(function() {
           var dialog = Ti.UI.createAlertDialog({
               titleid: "my_title",
               messageid: "my_message",
               okid: "my_ok"
           });
           
           Ti.API.warn(dialog.getTitleid());
           Ti.API.warn(dialog.getMessageid());
           Ti.API.warn(dialog.getOkid());
           
           dialog.show();
       },2000);
       
  2. Lokesh Choudhary 2016-08-19

    Verified the fix. The getTitleid(), setTitleid(), getMessageid(), setMessageid(), getOkid(), setOkid() works as expected. Closing. Environment: Appc Studio : 4.7.0.201607250649 Ti SDK : 6.0.0.v20160817065403 Ti CLI : 5.0.9 Alloy : 1.9.1 MAC El Capitan : 10.11.6 Appc NPM : 4.2.7 Appc CLI : 6.0.0-24 Node: 4.4.4 Nexus 6 - Android 6.0.1

JSON Source