Fixed issue where task killer warning popup would be displayed all the time.

pull/14/head
Tim Su 15 years ago
parent 555d990bdd
commit 158931148f

@ -121,9 +121,9 @@ public class Preferences {
}
/** TaskKillerHelp: whether we should show task killer help */
public static void setShouldShowTaskKillerHelp(Context context, boolean state) {
public static void disableTaskKillerHelp(Context context) {
Editor editor = getPrefs(context).edit();
editor.putBoolean(P_TASK_KILLER_HELP, state);
editor.putBoolean(P_TASK_KILLER_HELP, false);
editor.commit();
}

@ -118,8 +118,7 @@ public class StartupReceiver extends BroadcastReceiver {
@Override
public void onClick(DialogInterface arg0,
int arg1) {
Preferences.setShouldShowTaskKillerHelp(
context, true);
Preferences.disableTaskKillerHelp(context);
}
};

Loading…
Cancel
Save