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

Commit 4f1ca571 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

AM: Import untouched nextcloud code for notes app

parent 21f9a3e6
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -254,6 +254,16 @@
        <receiver
                android:name="foundation.e.accountmanager.sync.SyncBroadcastReceiver" />

        <service
                android:name="com.owncloud.android.services.AccountManagerService"
                android:enabled="true"
                android:exported="true"
                tools:ignore="ExportedService" />

        <activity
                android:name="com.owncloud.android.ui.activity.SsoGrantPermissionActivity"
                android:exported="true" />

        <!-- endregion /e/ Specific -->

    </application>
+527 −0

File added.

Preview size limit exceeded, changes collapsed.

+100 −0

File added.

Preview size limit exceeded, changes collapsed.

+43 −0
Original line number Diff line number Diff line
/*
 * Nextcloud - Android Client
 *
 * SPDX-FileCopyrightText: 2019 Tobias Kaminsky <tobias@kaminsky.me>
 * SPDX-FileCopyrightText: 2019 Nextcloud GmbH
 * SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
 */
package com.nextcloud.android.sso;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

public class PlainHeader implements Serializable {
    private static final long serialVersionUID = 3284979177401282512L;

    private String name;
    private String value;

    PlainHeader(String name, String value) {
        this.name = name;
        this.value = value;
    }

    private void writeObject(ObjectOutputStream oos) throws IOException {
        oos.writeObject(name);
        oos.writeObject(value);
    }

    private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
        name = (String) in.readObject();
        value = (String) in.readObject();
    }

    public String getName() {
        return this.name;
    }

    public String getValue() {
        return this.value;
    }
}
+59 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading