2015-08-05 19:48:41 +02:00
|
|
|
package ch.dissem.apps.abit;
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.support.v7.app.AppCompatActivity;
|
|
|
|
import android.support.v7.widget.Toolbar;
|
|
|
|
|
|
|
|
/**
|
2015-12-21 15:31:48 +01:00
|
|
|
* @author Christian Basler
|
2015-08-05 19:48:41 +02:00
|
|
|
*/
|
|
|
|
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);
|
|
|
|
|
|
|
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
|
|
|
getSupportActionBar().setHomeButtonEnabled(false);
|
|
|
|
|
|
|
|
// Display the fragment as the main content.
|
|
|
|
getFragmentManager().beginTransaction()
|
|
|
|
.replace(R.id.content, new SettingsFragment())
|
|
|
|
.commit();
|
|
|
|
}
|
|
|
|
}
|