Skip to content
Snippets Groups Projects
Commit a2ccef01 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

account edition: check for null

Change-Id: Icc6dde32f2a3ec97643f2ff0658818a6487df5dc
parent e78e62d9
Branches
Tags
No related merge requests found
......@@ -179,7 +179,7 @@ public class AccountEditionActivity extends AppCompatActivity implements Account
@Override
public void onBackPressed() {
if (mBackHandlerInterface.onBackPressed()) {
if (mBackHandlerInterface != null && mBackHandlerInterface.onBackPressed()) {
return;
}
if (frameLayout.getVisibility() == View.VISIBLE) {
......@@ -303,6 +303,7 @@ public class AccountEditionActivity extends AppCompatActivity implements Account
return isRing ? 3 : 4;
}
@NonNull
@Override
public Fragment getItem(int position) {
return isRing ? getRingPanel(position) : getSIPPanel(position);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment