Fixed bad behavior on toolbar back button in the assistant menu on first launch
This commit is contained in:
parent
15f4352490
commit
89941db572
1 changed files with 10 additions and 0 deletions
|
@ -130,10 +130,20 @@ public class MenuAssistantActivity extends AssistantActivity {
|
||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
|
||||||
if (getResources()
|
if (getResources()
|
||||||
.getBoolean(R.bool.forbid_to_leave_assistant_before_account_configuration)) {
|
.getBoolean(R.bool.forbid_to_leave_assistant_before_account_configuration)) {
|
||||||
mBack.setEnabled(false);
|
mBack.setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mBack.setOnClickListener(
|
||||||
|
new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
LinphonePreferences.instance().firstLaunchSuccessful();
|
||||||
|
goToLinphoneActivity();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue