Crash fix in the tutorial

pull/14/head
Sam Bosley 13 years ago
parent c789cc1c28
commit 22544e4fb6

@ -17,9 +17,11 @@
<Button <Button
android:id="@+id/quick_login_google" android:id="@+id/quick_login_google"
android:layout_width="280dip" android:layout_width="280dip"
android:layout_height="45dip" android:layout_height="wrap_content"
android:minHeight="45dip"
android:textSize="16sp" android:textSize="16sp"
android:background="@drawable/google_login_background" android:background="@drawable/google_login_background"
android:textColor="@android:color/white"
android:layout_marginBottom="15dip"/> android:layout_marginBottom="15dip"/>
<TextView <TextView

@ -79,8 +79,10 @@ public class WelcomePagerAdapter extends PagerAdapter implements TitleProvider
title[title.length - 1] = R.string.welcome_title_7_return; title[title.length - 1] = R.string.welcome_title_7_return;
images[images.length - 1] = R.drawable.welcome_walkthrough_1; images[images.length - 1] = R.drawable.welcome_walkthrough_1;
body[body.length - 1] = R.string.welcome_body_7_return; body[body.length - 1] = R.string.welcome_body_7_return;
fallbackLoginPage = R.layout.welcome_walkthrough_page;
} else { } else {
// Setup login page from AB tests // Setup login page from AB tests
fallbackLoginPage = layouts[layouts.length - 1];
if (ABChooser.readChoiceForTest(ABTests.AB_NEW_LOGIN_YES_GOOGLE) != ABChooser.NO_OPTION) { if (ABChooser.readChoiceForTest(ABTests.AB_NEW_LOGIN_YES_GOOGLE) != ABChooser.NO_OPTION) {
int choice = ABChooser.readChoiceForTest(ABTests.AB_NEW_LOGIN_YES_GOOGLE); int choice = ABChooser.readChoiceForTest(ABTests.AB_NEW_LOGIN_YES_GOOGLE);
switch (choice) { switch (choice) {

Loading…
Cancel
Save