Added hard coded boolean to hide/show each account wizard

This commit is contained in:
Sylvain Berfini 2012-10-12 10:13:52 +02:00
parent 76e9811676
commit 85c7f6cb88
3 changed files with 14 additions and 2 deletions

View file

@ -41,6 +41,7 @@
</RelativeLayout>
<RelativeLayout
android:id="@+id/setup_login_linphone_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.7"
@ -64,6 +65,7 @@
</RelativeLayout>
<RelativeLayout
android:id="@+id/setup_login_generic_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.7"

View file

@ -18,6 +18,8 @@
<bool name="hide_camera_settings">false</bool>
<bool name="hide_wizard">false</bool>
<bool name="hide_linphone_accounts_wizard">false</bool>
<bool name="hide_generic_accounts_wizard">false</bool>
<bool name="hide_accounts">false</bool>
<bool name="useFirstLoginActivity">true</bool>

View file

@ -41,10 +41,18 @@ public class MenuFragment extends Fragment implements OnClickListener {
createAccount.setOnClickListener(this);
logLinphoneAccount = (ImageView) view.findViewById(R.id.setup_login_linphone);
logLinphoneAccount.setOnClickListener(this);
if (getResources().getBoolean(R.bool.hide_linphone_accounts_wizard)) {
view.findViewById(R.id.setup_login_linphone_layout).setVisibility(View.GONE);
} else {
logLinphoneAccount.setOnClickListener(this);
}
logGenericAccount = (ImageView) view.findViewById(R.id.setup_login_generic);
logGenericAccount.setOnClickListener(this);
if (getResources().getBoolean(R.bool.hide_generic_accounts_wizard)) {
view.findViewById(R.id.setup_login_generic_layout).setVisibility(View.GONE);
} else {
logGenericAccount.setOnClickListener(this);
}
return view;
}