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");
        }
    }
}
package com.humbughq.android;

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

class AsyncLogin extends HumbugAsyncPushTask {

    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");
        }
    }
}
Remove duplicate definition of reference.
Remove duplicate definition of reference.
