28 lines
873 B
Java
28 lines
873 B
Java
package ch.dissem.apps.abit;
|
|
|
|
import android.os.Bundle;
|
|
import android.support.v7.app.AppCompatActivity;
|
|
import android.support.v7.widget.Toolbar;
|
|
|
|
/**
|
|
* @author Christian Basler
|
|
*/
|
|
public class SettingsActivity extends AppCompatActivity {
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
setContentView(R.layout.toolbar_layout);
|
|
|
|
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
|
|
setSupportActionBar(toolbar);
|
|
|
|
//noinspection ConstantConditions
|
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
|
getSupportActionBar().setHomeButtonEnabled(false);
|
|
|
|
// Display the fragment as the main content.
|
|
getFragmentManager().beginTransaction()
|
|
.replace(R.id.content, new SettingsFragment())
|
|
.commit();
|
|
}
|
|
} |