Back to project page osu-taste-portable.
The source code is released under:
Apache License
If you think the Android project osu-taste-portable listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.dgsrz.osuTaste.activities; /* w ww .ja v a2 s . co m*/ import android.os.Bundle; import android.preference.PreferenceActivity; import android.view.MenuItem; import com.dgsrz.osuTaste.R; /** * @author dgsrz (dgsrz@vip.qq.com) */ public class SettingsActivity extends PreferenceActivity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getActionBar().setDisplayHomeAsUpEnabled(true); addPreferencesFromResource(R.xml.settings); } /** * {@inheritDoc} */ @Override public boolean onOptionsItemSelected(final MenuItem item) { switch (item.getItemId()) { case android.R.id.home: onBackPressed(); finish(); return true; default: break; } return super.onOptionsItemSelected(item); } }