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

Commit 17c31d89 authored by TChardeur's avatar TChardeur
Browse files

Added imports

parent d4f35923
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
package com.android.settings.accounts;

import android.os.Bundle;
import android.os.Handler;
import android.net.Uri;
import android.view.View;

import com.android.settingslib.core.AbstractPreferenceController;
import com.android.settings.accounts.FollowNSULinkRemoteOperation;

import com.owncloud.android.lib.common.OwnCloudClient;
import com.owncloud.android.lib.common.OwnCloudClientFactory;
import com.owncloud.android.lib.common.OwnCloudCredentialsFactory;

public class AccountRemoteStoragePreferenceController extends AbstractPreferenceController {
    private OwnCloudClient mClient;
    private Handler mhandler;
@@ -13,6 +25,12 @@ public class AccountRemoteStoragePreferenceController extends AbstractPreference

        mHandler = new Handler();
        mClient = OwnCloudClientFactory.createOwnCloudClient(serverUri, this, true);
        mClient.setCredentials(
      			OwnCloudCredentialsFactory.newBasicCredentials(
      					"",
      					""
  				  )
  		  );
    }

    public void onClickHandler(View button) {
+7 −0
Original line number Diff line number Diff line
package com.android.settings.accounts;

import android.net.Uri;

import com.owncloud.android.lib.common.OwnCloudClient;

import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.Cookie;

import com.owncloud.android.lib.common.operations.RemoteOperationResult;


public class FollowNSULinkRemoteOperation extends RemoteOperation {
    protected RemoteOperationResult run(OwnCloudClient client) {