Fixed a crash with the simple login page

pull/14/head
Sam Bosley 13 years ago
parent b6bf3c7477
commit 2950307dc8

@ -95,7 +95,7 @@ public class ActFmLoginActivity extends FragmentActivity implements AuthListener
private Facebook facebook;
private AsyncFacebookRunner facebookRunner;
private TextView errors;
protected TextView errors;
public static final String SHOW_TOAST = "show_toast"; //$NON-NLS-1$

@ -32,4 +32,14 @@
android:textSize="16sp"
android:textColor="@android:color/white"/>
<TextView
android:id="@+id/error"
android:layout_width="fill_parent"
android:layout_height="45dip"
android:gravity="center"
android:visibility="gone"
android:textColor="#ff0000"
android:textSize="16sp"
android:textStyle="bold" />
</LinearLayout>

@ -157,6 +157,8 @@ public class WelcomeWalkthrough extends ActFmLoginActivity {
switchToLoginPage();
}
});
errors = (TextView) findViewById(R.id.error);
}
private void onAuthTokenSuccess(final String email, final String authToken) {

Loading…
Cancel
Save