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

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

fix lint issues

parent fb1c6b4d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -59,9 +59,9 @@ public class ParcelFileDescriptorUtil {
    }

    static class TransferThread extends Thread {
        final InputStream mIn;
        final OutputStream mOut;
        final IThreadListener mListener;
        private final InputStream mIn;
        private final OutputStream mOut;
        private final IThreadListener mListener;

        TransferThread(InputStream in, OutputStream out, IThreadListener listener) {
            super("ParcelFileDescriptor Transfer Thread");
+4 −9
Original line number Diff line number Diff line
@@ -2,8 +2,8 @@ package com.nextcloud.android.sso.exceptions;

import android.app.Application;
import android.content.Context;
import android.util.Log;

import com.nextcloud.android.sso.R;
import com.nextcloud.android.sso.model.ExceptionMessage;

import java.lang.reflect.InvocationTargetException;
@@ -29,6 +29,7 @@ import java.lang.reflect.InvocationTargetException;

public class SSOException extends Exception {

    private static final String TAG = SSOException.class.getCanonicalName();
    protected ExceptionMessage em;

    public SSOException() {
@@ -78,14 +79,8 @@ public class SSOException extends Exception {
        try {
            return (Application) Class.forName("android.app.ActivityThread")
                    .getMethod("currentApplication").invoke(null, (Object[]) null);
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InvocationTargetException e) {
            e.printStackTrace();
        } catch (NoSuchMethodException e) {
            e.printStackTrace();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (Exception e) {
            Log.e(TAG, e.getMessage());
        }
        return null;
    }
+4 −2
Original line number Diff line number Diff line
@@ -23,9 +23,11 @@ import android.net.Uri;
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

public class FilesAppNotInstalledHelper {
public final class FilesAppNotInstalledHelperUtil {

    public static void RequestInstallNextcloudFilesApp(Context context) {
    private FilesAppNotInstalledHelperUtil() { }

    public static void requestInstallNextcloudFilesApp(Context context) {
        // Nextcloud app not installed
        Intent installIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=com.nextcloud.client"));

+3 −1
Original line number Diff line number Diff line
@@ -26,7 +26,9 @@ import okhttp3.ResponseBody;
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

public class Okhttp3Helper {
public final class Okhttp3Helper {

    private Okhttp3Helper() { }

    public static ResponseBody getResponseBodyFromRequest(NextcloudAPI nextcloudAPI, NextcloudRequest request) {
        try {
+3 −1
Original line number Diff line number Diff line
@@ -25,7 +25,9 @@ import io.reactivex.functions.Action;
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

public class ReactivexHelper {
public final class ReactivexHelper {

    private ReactivexHelper() { }

    public static Completable WrapInCompletable(final NextcloudAPI nextcloudAPI, final NextcloudRequest request) {
        return Completable.fromAction(new Action() {
Loading