[Android Apps and Games] JoWi81:
Bug of Confirm-Dialog

Hello Masters, thanks for such a really great installer!

But one thing I do not get solved :eek: Is this normally when the Confirm-Dialog getting output "" (UnKnOwN) after using GOTO-Function or Back-Function?

And why the "setvar()" is called after using "goto()" above the "gotolabel()"? Is this a bug of Confirm-Dialog?

I have a link to demo file but can not post them. Below is an "aroma-config" code:

### LICENSE:
#
# Copyright (C) 2011 Ahmad Amarullah
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
### FILE INFO:
#
# AROMA Installer 2.70 - AROMA Installer Test Script Configuration
# (c) 2011-2012 by Ahmad Amarullah
# amarullz - xda-developers
#
# Binary Version : 3.00
# Binary Codename : Flamboyan
#

##
# Theme
#
theme("ics");

##
# Initializing Rom Information
#
ini_set("rom_name", "Confirm Bug Demo");
ini_set("rom_version", "1.00");
ini_set("rom_author", "JoWi81");
ini_set("rom_device", "Any Device");
ini_set("rom_date", "15.09.2015");

##
# Initializing Buttons
#
ini_set("text_next", "Next");
ini_set("icon_next", "@next");
ini_set("text_back", "Back");
ini_set("icon_back", "@back");

##
# Show Animated Splash
#
anisplash(
# #-- Number of Loop
1,

#-- Frame 1 [ Image, duration in millisecond ]. <AROMA Resource Dir>/splash/a[1..6].png
"splash/a1", 500,
"splash/a2", 30,
"splash/a3", 30,
"splash/a4", 30,
"splash/a5", 30,
"splash/a6", 30
);

#
# Set Small Font to Support all fonts
#
fontresload("0", "ttf/Roboto-Regular.ttf;ttf/DroidSansFallback.ttf;", "14");	#-- "0" = Small Font (Look at Fonts & UNICODE Demo Below)
fontresload("1", "ttf/Roboto-Regular.ttf;ttf/DroidSansFallback.ttf;", "20");	#-- "1" = Big Font

##
# Show welcome
#
viewbox(
#-- Title
"welcome",

#-- Text
"This is a demonstration of Confirm-Dialog bug after using GOTO-Function or Back-Function.\n\n"+
"Press 'Next' to begin this demo.",

#-- Icon (@default = <ThemeDir>/icon.default.png)
"@welcome"
);

##
# Show Confirm-Dialog and set Confirm-Output variable
#
setvar(
"confirmOutputVar",

confirm(
#-- Title
"Confirm-Dialog (with bug?)",

#-- Text
"Press 'YES' or 'NO' button to prepare a variable for <b>Viewbox-Dummy</b> on the next step.",

#-- Icon (@default = <ThemeDir>/icon.default.png) (Optional)
"@default"
)
);

if
getvar("confirmOutputVar") == "yes"
then
setvar("confirmedButton", "Confirmed <b><#f00>YES</#>-button</b> and that's right!");
endif;

if
getvar("confirmOutputVar") == "no"
then
setvar("confirmedButton", "Confirmed <b><#f00>NO</#>-button</b> and that's right!");
endif;

if
getvar("confirmOutputVar") == ""
then
# Why Confirm-Dialog getting UnKnOwN output and why the 'setvar()' is called after using 'goto()' above the 'gotolabel()'?
setvar("confirmedButton", "Confirmed <b><#f00>UnKnOwN</#>-button</b>! But why? And why the 'setvar()' is called after using 'goto()' above the 'gotolabel()'? Is this a bug?\n\n For more details please see the code in 'aroma-config' file.");
endif;

ini_set("text_next", "GOTO");

gotolabel("viewboxDummyLabel");
##
# Show Viewbox-Dummy
#
viewbox(
#-- Title
"Viewbox-Dummy",

#-- Text
getvar("confirmedButton")+"\n\n"+
"Press 'GOTO' to loop this <b>Viewbox-Dummy</b> or 'Back' tu restart the <b>"+ini_get("rom_name")+"</b>.",

#-- Icon (@default = <ThemeDir>/icon.default.png)
"@info"
);
goto("viewboxDummyLabel");	# Back to Show Viewbox-Dummy
#back("1");

#---- FINISH

Sorry for my bad english :o

Best regards, JoWi81