Skip to content

Commit

Permalink
safari is not available on Android phones :)
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierlacot committed Mar 24, 2011
1 parent 563eef3 commit c2eddbc
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions Resources/js/views/history.details.js
Expand Up @@ -111,13 +111,20 @@ view.add(labelLongurlValue);
// actions button
var actionButton = Titanium.UI.createButton();
actionButton.addEventListener('click', function() {
var options = [];

if (Titanium.Platform.name == 'android') {
options.push('Show this page in the browser');
} else {
options.push('Show this page in Safari');
}

options.push('Copy the short url');
options.push('Copy the long url');
options.push('Cancel');

var dialog = Titanium.UI.createOptionDialog({
options: [
'Show this page in Safari',
'Copy the short url',
'Copy the long url',
'Cancel'
],
options: options,
cancel: 3
});
dialog.show();
Expand Down

0 comments on commit c2eddbc

Please sign in to comment.