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

Commit d07e368d authored by Stefan Niedermann's avatar Stefan Niedermann
Browse files

Expose settings attributes

parent 491ccd57
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ import it.niedermann.owncloud.notes.R;
import it.niedermann.owncloud.notes.databinding.ItemAccountChooseBinding;
import it.niedermann.owncloud.notes.persistence.entity.Account;
import it.niedermann.owncloud.notes.shared.model.ApiVersion;
import it.niedermann.owncloud.notes.shared.util.ApiVersionUtil;

import static android.view.View.GONE;
import static android.view.View.VISIBLE;
+4 −4
Original line number Diff line number Diff line
@@ -130,9 +130,9 @@ public class ManageAccountsActivity extends LockedActivity {
                            public void onResponse(@NonNull Call<NotesSettings> call, @NonNull Response<NotesSettings> response) {
                                final NotesSettings body = response.body();
                                if (response.isSuccessful() && body != null) {
                                    Toast.makeText(ManageAccountsActivity.this, "New notes path: " + body.getNotesPath(), Toast.LENGTH_LONG).show();
                                    runOnUiThread(() -> Toast.makeText(ManageAccountsActivity.this, "New notes path: " + body.getNotesPath(), Toast.LENGTH_LONG).show());
                                } else {
                                    Toast.makeText(ManageAccountsActivity.this, "HTTP status code: " + response.code(), Toast.LENGTH_LONG).show();
                                    runOnUiThread(() -> Toast.makeText(ManageAccountsActivity.this, "HTTP status code: " + response.code(), Toast.LENGTH_LONG).show());
                                }
                            }

@@ -197,9 +197,9 @@ public class ManageAccountsActivity extends LockedActivity {
                            public void onResponse(@NonNull Call<NotesSettings> call, @NonNull Response<NotesSettings> response) {
                                final NotesSettings body = response.body();
                                if (response.isSuccessful() && body != null) {
                                    Toast.makeText(ManageAccountsActivity.this, "New file suffix: " + body.getNotesPath(), Toast.LENGTH_LONG).show();
                                    runOnUiThread(() -> Toast.makeText(ManageAccountsActivity.this, "New file suffix: " + body.getNotesPath(), Toast.LENGTH_LONG).show());
                                } else {
                                    Toast.makeText(ManageAccountsActivity.this, "HTTP status code: " + response.code(), Toast.LENGTH_LONG).show();
                                    runOnUiThread(() -> Toast.makeText(ManageAccountsActivity.this, "HTTP status code: " + response.code(), Toast.LENGTH_LONG).show());
                                }
                            }

+4 −0
Original line number Diff line number Diff line
@@ -2,10 +2,14 @@ package it.niedermann.owncloud.notes.shared.model;

import androidx.annotation.Nullable;

import com.google.gson.annotations.Expose;

public class NotesSettings {

    @Expose
    @Nullable
    private String notesPath;
    @Expose
    @Nullable
    private String fileSuffix;