diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/org/bienvenidoainternet/app/SettingsActivity.java | 7 | ||||
-rw-r--r-- | app/src/main/res/layout/activity_response.xml | 3 |
2 files changed, 4 insertions, 6 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); diff --git a/app/src/main/res/layout/activity_response.xml b/app/src/main/res/layout/activity_response.xml index 2b5b1e0..bd42219 100644 --- a/app/src/main/res/layout/activity_response.xml +++ b/app/src/main/res/layout/activity_response.xml @@ -8,7 +8,8 @@ android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="org.bienvenidoainternet.app.ResponseActivity" - android:textAlignment="textEnd"> + android:textAlignment="textEnd" + android:layout_gravity="end"> <RelativeLayout android:layout_width="match_parent" |