show icon in toolbar
This commit is contained in:
parent
23e8220b12
commit
f1564519d3
1 changed files with 7 additions and 0 deletions
|
@ -54,6 +54,13 @@ public class MainActivity extends AppCompatActivity {
|
|||
setSupportActionBar(toolbar);
|
||||
registerBus();
|
||||
|
||||
try {
|
||||
getSupportActionBar().setDisplayShowHomeEnabled(true);
|
||||
getSupportActionBar().setIcon(R.mipmap.ic_launcher);
|
||||
} catch (NullPointerException e) {
|
||||
// no action
|
||||
}
|
||||
|
||||
if (keepAliveReceiver == null) {
|
||||
keepAliveReceiver = new KeepAliveReceiver();
|
||||
startService(new Intent(this, ExecutionService.class));
|
||||
|
|
Loading…
Reference in a new issue