mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 13:05:31 +03:00
Protect against action bar
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
08f959c060
commit
cb55e32355
3 changed files with 10 additions and 3 deletions
|
@ -130,7 +130,9 @@ public class CallsListController extends BaseController implements SearchView.On
|
|||
super.onViewBound(view);
|
||||
NextcloudTalkApplication.getSharedApplication().getComponentApplication().inject(this);
|
||||
|
||||
getActionBar().show();
|
||||
if (getActionBar() != null) {
|
||||
getActionBar().show();
|
||||
}
|
||||
|
||||
userEntity = userUtils.getCurrentUser();
|
||||
|
||||
|
|
|
@ -234,7 +234,10 @@ public class SettingsController extends BaseController {
|
|||
@Override
|
||||
protected void onAttach(@NonNull View view) {
|
||||
super.onAttach(view);
|
||||
getActionBar().show();
|
||||
|
||||
if (getActionBar() != null) {
|
||||
getActionBar().show();
|
||||
}
|
||||
|
||||
dispose(null);
|
||||
userEntity = userUtils.getCurrentUser();
|
||||
|
|
|
@ -179,7 +179,9 @@ public class SwitchAccountController extends BaseController {
|
|||
adapter.addListener(onSwitchItemClickListener);
|
||||
adapter.updateDataSet(userItems, false);
|
||||
} else {
|
||||
getActionBar().show();
|
||||
if (getActionBar() != null) {
|
||||
getActionBar().show();
|
||||
}
|
||||
Account account;
|
||||
ImportAccount importAccount;
|
||||
for (Object accountObject : AccountUtils.findAccounts(userUtils.getUsers())) {
|
||||
|
|
Loading…
Reference in a new issue