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);
|
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));
|
||||||
|
|
Loading…
Reference in a new issue