Update modal download dialogs for sdk/ndk download.
Revise the redirect behavior once download completes. Add more appropriate title and download message when installing SDK tools only. Force refresh when the Studio download dialog is dismissed, to avoid leaving the dialog in stale state. Add styles for the Studio download page. Change-Id: Ibc4ddb4a6130ab8bd8d6044472022465829f2000
This commit is contained in:
committed by
smain@google.com
parent
0d268bea3c
commit
c607a4d4d5
@@ -3891,6 +3891,11 @@ switch (window.getLangPref()) {
|
||||
this.el.removeClass('dac-active');
|
||||
$('body').removeClass('dac-modal-open');
|
||||
this.isOpen = false;
|
||||
// When closing the modal for Android Studio downloads, reload the page
|
||||
// because otherwise we might get stuck with post-download dialog state
|
||||
if ($("[data-modal='studio_tos']").length) {
|
||||
location.reload();
|
||||
}
|
||||
};
|
||||
|
||||
Modal.prototype.open_ = function() {
|
||||
|
Reference in New Issue
Block a user