Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19065] Windows: AlertDialog.show() fails when buttonNames.length >= 3

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-06-25T12:52:54.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2015-06-23T12:27:20.000+0000
Updated2015-07-01T15:58:33.000+0000

Description

Ti.UI.AlertDialog.show fails when buttonNames have over three buttons on Windows Phone. It looks like it's a limitation of Windows::UI::Popups::MessageDialog on Windows Phone, so we might want to throw exception when over 3 names are assigned.
	Ti.UI.createAlertDialog({
		title: 'Title',
		message: 'Message',
		buttonNames: ['A','B','C']
	}).show();

Comments

  1. Christopher Williams 2015-06-23

    Bumping out to 4.1.1 as it's lower priority.
  2. Kota Iguchi 2015-06-25

    https://github.com/appcelerator/titanium_mobile_windows/pull/324
  3. Lokesh Choudhary 2015-06-30

    Verified the fix. Closing. Environment: Appc Studio: 4.1.0.201506261427 Ti SDK: 4.1.0.v20150629125430 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0-1 APPC CLI: 4.1.0-4 Device: Nokia Lumia 928 - Windows Phone 8.1 Windows emulator : 8.1

JSON Source