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
No related branches found
No related tags found
No related merge requests found
...@@ -179,7 +179,7 @@ public class AccountEditionActivity extends AppCompatActivity implements Account ...@@ -179,7 +179,7 @@ public class AccountEditionActivity extends AppCompatActivity implements Account
@Override @Override
public void onBackPressed() { public void onBackPressed() {
if (mBackHandlerInterface.onBackPressed()) { if (mBackHandlerInterface != null && mBackHandlerInterface.onBackPressed()) {
return; return;
} }
if (frameLayout.getVisibility() == View.VISIBLE) { if (frameLayout.getVisibility() == View.VISIBLE) {
...@@ -303,6 +303,7 @@ public class AccountEditionActivity extends AppCompatActivity implements Account ...@@ -303,6 +303,7 @@ public class AccountEditionActivity extends AppCompatActivity implements Account
return isRing ? 3 : 4; return isRing ? 3 : 4;
} }
@NonNull
@Override @Override
public Fragment getItem(int position) { public Fragment getItem(int position) {
return isRing ? getRingPanel(position) : getSIPPanel(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