Back to project page rgb-tool.
The source code is released under:
Apache License
If you think the Android project rgb-tool 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.fastebro.androidrgbtool.ui; /*w w w. jav a 2 s . c o m*/ import android.os.Build; import android.os.Bundle; import android.transition.Fade; import android.view.MenuItem; import com.fastebro.androidrgbtool.fragments.AboutFragment; public class AboutActivity extends BaseActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if(getSupportActionBar() != null) { getSupportActionBar().setDisplayHomeAsUpEnabled(true); } getFragmentManager().beginTransaction() .replace(android.R.id.content, new AboutFragment()) .commit(); } @Override public boolean onOptionsItemSelected(MenuItem item) { if(item.getItemId() == android.R.id.home) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { finishAfterTransition(); } else { finish(); } return true; } else { return super.onOptionsItemSelected(item); } } }