# HG changeset patch # User Da Risk # Date 1258765715 -3600 # Node ID 23e8095cace57afd970a3f1a99fef0ed026d068a # Parent a4bbfbfb586c4e20fb6afb787741bc425c5500ab Launch the contactlist activity on successfull connection diff -r a4bbfbfb586c -r 23e8095cace5 src/com/beem/project/beem/ui/LoginAnim.java --- a/src/com/beem/project/beem/ui/LoginAnim.java Sat Nov 21 01:18:23 2009 +0100 +++ b/src/com/beem/project/beem/ui/LoginAnim.java Sat Nov 21 02:08:35 2009 +0100 @@ -106,6 +106,17 @@ Log.d(TAG, "Connection result? " + result); return result; } + + @Override + protected void onPostExecute(Boolean result) { + if (result == null || !result) { // Task cancelled on exception + Log.d(TAG, "Exception or cancelation of the connection"); + } else { + LoginAnim.this.startActivity(new Intent(LoginAnim.this, ContactList.class)); + LoginAnim.this.finish(); + } + } + } private class LoginServiceConnection implements ServiceConnection {