UI: catch 'up' button on last activity -> Hub

usb
Georg Lukas 2015-02-12 17:21:50 +01:00
rodzic ba1296487b
commit e777dcb7fa
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -258,6 +258,12 @@ trait UIHelper extends Activity
// stopService(AprsService.intent(this, AprsService.SERVICE))
// finish();
// true
case android.R.id.home =>
if (isTaskRoot()) {
startActivity(new Intent(this, classOf[HubActivity]).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP));
finish();
true
} else false
case _ => false
}
}