Commit c30d084afe4842902c455cdb287086f8c2925321
1 parent
d653200e
Fix settings home
Fix settings home btn
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
app/src/main/java/fr/utbm/lo53/p2017/positionningapp/SettingsActivity.java
@@ -251,4 +251,15 @@ public class SettingsActivity extends AppCompatPreferenceActivity { | @@ -251,4 +251,15 @@ public class SettingsActivity extends AppCompatPreferenceActivity { | ||
251 | return super.onOptionsItemSelected(item); | 251 | return super.onOptionsItemSelected(item); |
252 | } | 252 | } |
253 | } | 253 | } |
254 | + | ||
255 | + @Override | ||
256 | + public boolean onOptionsItemSelected(MenuItem item) { | ||
257 | + switch (item.getItemId()) { | ||
258 | + // Respond to the action bar's Up/Home button | ||
259 | + case android.R.id.home: | ||
260 | + super.onBackPressed(); | ||
261 | + return true; | ||
262 | + } | ||
263 | + return super.onOptionsItemSelected(item); | ||
264 | + } | ||
254 | } | 265 | } |