package com.humbughq.android;

import android.util.Log;
import android.widget.TextView;

class AsyncLogin extends HumbugAsyncPushTask {
    HumbugActivity that;

    public AsyncLogin(HumbugActivity humbugActivity, String username,
            String password) {
        super(humbugActivity);
        that = humbugActivity;
        this.that.email = username;
        this.setProperty("username", username);
        this.setProperty("password", password);
    }

    public final void execute() {
        execute("api/v1/fetch_api_key");
    }

    @Override
    protected void onPostExecute(String result) {
        super.onPostExecute(result);

        if (result != null) {
            this.that.api_key = result.toString();
            Log.i("login", "Logged in as " + this.that.api_key);

            this.that.openLogin();
        } else {
            TextView errorText = (TextView) this.that
                    .findViewById(R.id.error_text);
            errorText.setText("Login failed");
        }
    }
}
@@ -132,33 +132,8 @@
 sk %7B
-%0A    HumbugActivity that;
 %0A%0A  

Remove duplicate definition of reference.