diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-08-14 08:39:45 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-08-14 08:39:45 -0700 |
commit | d2a59930d8958f58a96409fc8efe68a53b976ed8 (patch) | |
tree | 4640a6a6a13eead6956d0414c9d5036f96f0a365 /src/com/android/browser | |
parent | 3c2ab0322d40a0eac3b482052532e27d20399f65 (diff) | |
parent | edc9e064969b97fd62f492ef8e15812b63af2bb3 (diff) | |
download | packages_apps_Browser-d2a59930d8958f58a96409fc8efe68a53b976ed8.zip packages_apps_Browser-d2a59930d8958f58a96409fc8efe68a53b976ed8.tar.gz packages_apps_Browser-d2a59930d8958f58a96409fc8efe68a53b976ed8.tar.bz2 |
am edc9e064: Merge "Browser: Use ICS alert icon"
* commit 'edc9e064969b97fd62f492ef8e15812b63af2bb3':
Browser: Use ICS alert icon
Diffstat (limited to 'src/com/android/browser')
-rw-r--r-- | src/com/android/browser/BookmarkUtils.java | 2 | ||||
-rw-r--r-- | src/com/android/browser/BrowserHistoryPage.java | 2 | ||||
-rw-r--r-- | src/com/android/browser/DownloadHandler.java | 2 | ||||
-rw-r--r-- | src/com/android/browser/HttpAuthenticationDialog.java | 2 | ||||
-rw-r--r-- | src/com/android/browser/Tab.java | 8 | ||||
-rw-r--r-- | src/com/android/browser/preferences/WebsiteSettingsFragment.java | 6 |
6 files changed, 11 insertions, 11 deletions
diff --git a/src/com/android/browser/BookmarkUtils.java b/src/com/android/browser/BookmarkUtils.java index 4834c39..f0c01f7 100644 --- a/src/com/android/browser/BookmarkUtils.java +++ b/src/com/android/browser/BookmarkUtils.java @@ -234,7 +234,7 @@ public class BookmarkUtils { final Context context, final Message msg) { new AlertDialog.Builder(context) - .setIcon(android.R.drawable.ic_dialog_alert) + .setIconAttribute(android.R.attr.alertDialogIcon) .setMessage(context.getString(R.string.delete_bookmark_warning, title)) .setPositiveButton(R.string.ok, diff --git a/src/com/android/browser/BrowserHistoryPage.java b/src/com/android/browser/BrowserHistoryPage.java index 69febc5..9493b85 100644 --- a/src/com/android/browser/BrowserHistoryPage.java +++ b/src/com/android/browser/BrowserHistoryPage.java @@ -293,7 +293,7 @@ public class BrowserHistoryPage extends Fragment final ClearHistoryTask clear = new ClearHistoryTask(resolver); AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()) .setMessage(R.string.pref_privacy_clear_history_dlg) - .setIcon(android.R.drawable.ic_dialog_alert) + .setIconAttribute(android.R.attr.alertDialogIcon) .setNegativeButton(R.string.cancel, null) .setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() { @Override diff --git a/src/com/android/browser/DownloadHandler.java b/src/com/android/browser/DownloadHandler.java index 2292716..5517e59 100644 --- a/src/com/android/browser/DownloadHandler.java +++ b/src/com/android/browser/DownloadHandler.java @@ -162,7 +162,7 @@ public class DownloadHandler { new AlertDialog.Builder(activity) .setTitle(title) - .setIcon(android.R.drawable.ic_dialog_alert) + .setIconAttribute(android.R.attr.alertDialogIcon) .setMessage(msg) .setPositiveButton(R.string.ok, null) .show(); diff --git a/src/com/android/browser/HttpAuthenticationDialog.java b/src/com/android/browser/HttpAuthenticationDialog.java index ac4119c..0c16632 100644 --- a/src/com/android/browser/HttpAuthenticationDialog.java +++ b/src/com/android/browser/HttpAuthenticationDialog.java @@ -128,7 +128,7 @@ public class HttpAuthenticationDialog { mDialog = new AlertDialog.Builder(mContext) .setTitle(title) - .setIcon(android.R.drawable.ic_dialog_alert) + .setIconAttribute(android.R.attr.alertDialogIcon) .setView(v) .setPositiveButton(R.string.action, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java index 7cb00d9..484357e 100644 --- a/src/com/android/browser/Tab.java +++ b/src/com/android/browser/Tab.java @@ -518,7 +518,7 @@ class Tab implements PictureListener { new AlertDialog.Builder(mContext) .setTitle(R.string.security_warning) .setMessage(R.string.ssl_warnings_header) - .setIcon(android.R.drawable.ic_dialog_alert) + .setIconAttribute(android.R.attr.alertDialogIcon) .setPositiveButton(R.string.ssl_continue, new DialogInterface.OnClickListener() { @Override @@ -719,7 +719,7 @@ class Tab implements PictureListener { if (dialog && mSubView != null) { new AlertDialog.Builder(mContext) .setTitle(R.string.too_many_subwindows_dialog_title) - .setIcon(android.R.drawable.ic_dialog_alert) + .setIconAttribute(android.R.attr.alertDialogIcon) .setMessage(R.string.too_many_subwindows_dialog_message) .setPositiveButton(R.string.ok, null) .show(); @@ -727,7 +727,7 @@ class Tab implements PictureListener { } else if (!mWebViewController.getTabControl().canCreateNewTab()) { new AlertDialog.Builder(mContext) .setTitle(R.string.too_many_windows_dialog_title) - .setIcon(android.R.drawable.ic_dialog_alert) + .setIconAttribute(android.R.attr.alertDialogIcon) .setMessage(R.string.too_many_windows_dialog_message) .setPositiveButton(R.string.ok, null) .show(); @@ -760,7 +760,7 @@ class Tab implements PictureListener { // Build a confirmation dialog to display to the user. final AlertDialog d = new AlertDialog.Builder(mContext) - .setIcon(android.R.drawable.ic_dialog_alert) + .setIconAttribute(android.R.attr.alertDialogIcon) .setMessage(R.string.popup_window_attempt) .setPositiveButton(R.string.allow, allowListener) .setNegativeButton(R.string.block, blockListener) diff --git a/src/com/android/browser/preferences/WebsiteSettingsFragment.java b/src/com/android/browser/preferences/WebsiteSettingsFragment.java index da06428..c84c669 100644 --- a/src/com/android/browser/preferences/WebsiteSettingsFragment.java +++ b/src/com/android/browser/preferences/WebsiteSettingsFragment.java @@ -596,7 +596,7 @@ public class WebsiteSettingsFragment extends ListFragment implements OnClickList notifyDataSetChanged(); }}) .setNegativeButton(R.string.webstorage_clear_data_dialog_cancel_button, null) - .setIcon(android.R.drawable.ic_dialog_alert) + .setIconAttribute(android.R.attr.alertDialogIcon) .show(); break; case Site.FEATURE_GEOLOCATION: @@ -614,7 +614,7 @@ public class WebsiteSettingsFragment extends ListFragment implements OnClickList notifyDataSetChanged(); }}) .setNegativeButton(R.string.geolocation_settings_page_dialog_cancel_button, null) - .setIcon(android.R.drawable.ic_dialog_alert) + .setIconAttribute(android.R.attr.alertDialogIcon) .show(); break; } @@ -695,7 +695,7 @@ public class WebsiteSettingsFragment extends ListFragment implements OnClickList finish(); }}) .setNegativeButton(R.string.website_settings_clear_all_dialog_cancel_button, null) - .setIcon(android.R.drawable.ic_dialog_alert) + .setIconAttribute(android.R.attr.alertDialogIcon) .show(); break; } |