[openintents] r4261 committed - OI Safe: disable switch mode on first time

1 view
Skip to first unread message

openi...@googlecode.com

unread,
Apr 21, 2012, 4:36:18 PM4/21/12
to openintents...@googlegroups.com
Revision: 4261
Author: rmc...@gmail.com
Date: Sat Apr 21 13:36:02 2012
Log: OI Safe: disable switch mode on first time

http://code.google.com/p/openintents/source/detail?r=4261

Modified:
/trunk/safe/Safe/src/org/openintents/safe/AskPassword.java

=======================================
--- /trunk/safe/Safe/src/org/openintents/safe/AskPassword.java Tue Apr 3
17:44:40 2012
+++ /trunk/safe/Safe/src/org/openintents/safe/AskPassword.java Sat Apr 21
13:36:02 2012
@@ -26,7 +26,6 @@

import android.app.AlertDialog;
import android.app.Dialog;
-import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
@@ -408,6 +407,11 @@
if (CheckWrappers.mActionBarAvailable) {
WrapActionBar.showIfRoom(item);
}
+ if (firstTime) {
+ item.setEnabled(false);
+ } else {
+ item.setEnabled(true);
+ }

MenuItem miMute;
if (mute) {

Reply all
Reply to author
Forward
0 new messages