Skip to content
Browse files

modified signature of okDialog with icon to include custom title

  • Loading branch information...
1 parent aa29fd1 commit 5834c5046a357d604870d537246f774c7b3d851e Tim Su committed Oct 22, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/com/todoroo/andlib/utility/DialogUtilities.java
View
5 src/com/todoroo/andlib/utility/DialogUtilities.java
@@ -91,15 +91,16 @@ public void run() {
* @param text
* @param okListener
*/
- public static void okDialog(final Activity activity, final int icon, final CharSequence text,
+ public static void okDialog(final Activity activity, final String title,
+ final int icon, final CharSequence text,
final DialogInterface.OnClickListener okListener) {
if(activity.isFinishing())
return;
activity.runOnUiThread(new Runnable() {
public void run() {
new AlertDialog.Builder(activity)
- .setTitle(R.string.DLG_information_title)
+ .setTitle(title)
.setMessage(text)
.setIcon(icon)
.setPositiveButton(android.R.string.ok, okListener)

0 comments on commit 5834c50

Please sign in to comment.
Something went wrong with that request. Please try again.