Commits

Anonymous committed 598a24a Draft

change setIconAttribute to setIcon for alert dialogs

Comments (0)

Files changed (3)

AndroidManifest.xml

 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.jrummy.busybox.installer"
-    android:versionCode="33"
-    android:versionName="3.3" >
+    android:versionCode="37"
+    android:versionName="3.7" >
 
     <uses-permission android:name="android.permission.INTERNET" />
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

src/com/jrummy/busybox/installer/BusyboxActivity.java

 	protected Dialog onCreateDialog(final int id) {
 		if (id == DIALOG_WELCOME) {
 			return new AlertDialog.Builder(BusyboxActivity.this)
-			.setIconAttribute(R.drawable.titlebar_icon)
+			.setIcon(R.drawable.titlebar_icon)
 			.setTitle(getString(R.string.dt_welcome))
 			.setCancelable(false)
 			.setMessage(getString(R.string.dm_welcome))
 			return dialog;
 		} else if (id == DIALOG_ROOT_ACCESS_FAILED) {
 			return new AlertDialog.Builder(BusyboxActivity.this)
-			.setIconAttribute(android.R.attr.alertDialogIcon)
+			.setIcon(android.R.drawable.ic_dialog_alert)
 			.setTitle(getString(R.string.dt_root_access_failed))
 			.setCancelable(false)
 			.setMessage(getString(R.string.dm_root_access_failed))
 			BusyboxInstaller installer = (BusyboxInstaller) BusyboxFragment
 					.getData(INSTALLER_TAB_POS);
 			return new AlertDialog.Builder(BusyboxActivity.this)
-			.setIconAttribute(android.R.attr.alertDialogIcon)
+			.setIcon(android.R.drawable.ic_dialog_alert)
 			.setTitle(getString(R.string.dt_download_failed))
 			.setCancelable(false)
 			.setMessage(getString(R.string.no_internet_connection, installer.mVersion.get("name")))

src/com/jrummy/busybox/installer/BusyboxPreferences.java

 			return dialog;
 		} else if (id == DIALOG_CONFIRM_DELETE) {
 			return new AlertDialog.Builder(BusyboxPreferences.this)
-			.setIconAttribute(android.R.attr.alertDialogIcon)
+			.setIcon(android.R.drawable.ic_dialog_alert)
 			.setTitle(getString(R.string.dt_confirm_delete))
 			.setCancelable(false)
 			.setMessage(getString(R.string.dm_confirm_delete))