Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbe050cd authored by David Luhmer's avatar David Luhmer
Browse files

reorder variables / constructor

parent 0fc646ba
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
@@ -59,9 +59,20 @@ import static com.nextcloud.android.sso.exceptions.SSOException.parseNextcloudCu

public class NextcloudAPI {

    private static final String TAG = NextcloudAPI.class.getCanonicalName();

    private Gson gson;
    private IInputStreamService mService = null;
    private final AtomicBoolean mBound = new AtomicBoolean(false); // Flag indicating whether we have called bind on the service
    private boolean mDestroyed = false; // Flag indicating if API is destroyed
    private SingleSignOnAccount mAccount;
    private ApiConnectedListener mCallback;
    private Context mContext;



    public interface ApiConnectedListener {
        void onConnected();

        void onError(Exception ex);
    }

@@ -74,17 +85,6 @@ public class NextcloudAPI {
        connectApiWithBackoff();
    }

    private static final String TAG = NextcloudAPI.class.getCanonicalName();

    private Gson gson;
    private IInputStreamService mService = null;
    private final AtomicBoolean mBound = new AtomicBoolean(false); // Flag indicating whether we have called bind on the service
    private boolean mDestroyed = false; // Flag indicating if API is destroyed
    private SingleSignOnAccount mAccount;
    private ApiConnectedListener mCallback;
    private Context mContext;


    private String getAccountName() {
        return mAccount.name;
    }