Permalink
Browse files

fixed Lint complaints

  • Loading branch information...
1 parent 6a8b474 commit 8ed2ae483ef63a20c9e43712e5e929757faafc47 @commonsguy committed Mar 19, 2013
@@ -51,9 +51,9 @@ public void onResume() {
SharedPreferences prefs=
PreferenceManager.getDefaultSharedPreferences(getActivity());
- checkbox.setText(new Boolean(prefs.getBoolean("checkbox", false)).toString());
+ checkbox.setText(Boolean.valueOf(prefs.getBoolean("checkbox", false)).toString());
ringtone.setText(prefs.getString("ringtone", "<unset>"));
- checkbox2.setText(new Boolean(prefs.getBoolean("checkbox2", false)).toString());
+ checkbox2.setText(Boolean.valueOf(prefs.getBoolean("checkbox2", false)).toString());
text.setText(prefs.getString("text", "<unset>"));
list.setText(prefs.getString("list", "<unset>"));
}
@@ -14,9 +14,12 @@
package com.commonsware.android.preffragsbc;
+import android.annotation.TargetApi;
+import android.os.Build;
import android.os.Bundle;
import android.preference.PreferenceFragment;
+@TargetApi(Build.VERSION_CODES.HONEYCOMB)
public class StockPreferenceFragment extends PreferenceFragment {
@Override
public void onCreate(Bundle savedInstanceState) {

0 comments on commit 8ed2ae4

Please sign in to comment.