diff options
author | z411 | 2016-04-28 11:12:12 -0300 |
---|---|---|
committer | z411 | 2016-04-28 11:12:12 -0300 |
commit | e413904f974ef876578338498bf23faf6a2c2ee0 (patch) | |
tree | 202affa4d35775b49a4e6b360e83fb26447c8795 /app/src/main/java/org | |
parent | 74222720c307abdfae25cf5361901bb18ea3dad4 (diff) | |
download | BaiApp-e413904f974ef876578338498bf23faf6a2c2ee0.tar.gz BaiApp-e413904f974ef876578338498bf23faf6a2c2ee0.tar.xz BaiApp-e413904f974ef876578338498bf23faf6a2c2ee0.zip |
PreferenceFragment subclass should be static (fixes Lint error)
Diffstat (limited to 'app/src/main/java/org')
-rw-r--r-- | app/src/main/java/org/bienvenidoainternet/app/SettingsActivity.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/src/main/java/org/bienvenidoainternet/app/SettingsActivity.java b/app/src/main/java/org/bienvenidoainternet/app/SettingsActivity.java index 021aed5..1d3e6c9 100644 --- a/app/src/main/java/org/bienvenidoainternet/app/SettingsActivity.java +++ b/app/src/main/java/org/bienvenidoainternet/app/SettingsActivity.java @@ -172,7 +172,7 @@ public class SettingsActivity extends AppCompatPreferenceActivity { * activity is showing a two-pane settings UI. */ @TargetApi(Build.VERSION_CODES.HONEYCOMB) - public class GeneralPreferenceFragment extends PreferenceFragment { + public static class GeneralPreferenceFragment extends PreferenceFragment { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -192,10 +192,7 @@ public class SettingsActivity extends AppCompatPreferenceActivity { int id = item.getItemId(); if (id == android.R.id.home) { // startActivity(new Intent(getActivity(), SettingsActivity.class)); - Intent returnIntent = new Intent(); - returnIntent.putExtra("result",requireReset); - setResult(Activity.RESULT_OK,returnIntent); - finish(); + getActivity().onBackPressed(); return true; } return super.onOptionsItemSelected(item); |