show icon in toolbar

This commit is contained in:
Milos Kozak 2016-09-10 16:08:29 +02:00
parent 23e8220b12
commit f1564519d3

View file

@ -54,6 +54,13 @@ public class MainActivity extends AppCompatActivity {
setSupportActionBar(toolbar); setSupportActionBar(toolbar);
registerBus(); registerBus();
try {
getSupportActionBar().setDisplayShowHomeEnabled(true);
getSupportActionBar().setIcon(R.mipmap.ic_launcher);
} catch (NullPointerException e) {
// no action
}
if (keepAliveReceiver == null) { if (keepAliveReceiver == null) {
keepAliveReceiver = new KeepAliveReceiver(); keepAliveReceiver = new KeepAliveReceiver();
startService(new Intent(this, ExecutionService.class)); startService(new Intent(this, ExecutionService.class));