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

Unverified Commit 484677b1 authored by alperozturk's avatar alperozturk
Browse files

add to-do

parent e157d866
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@ import com.owncloud.android.lib.resources.shares.ShareType
import it.niedermann.owncloud.notes.shared.model.OcsResponse
import retrofit2.Call
import retrofit2.http.DELETE
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.GET
import retrofit2.http.PATCH
import retrofit2.http.POST
@@ -38,15 +40,16 @@ interface ShareAPI {
    @PATCH("shares")
    fun updateShare(remoteShareId: Long): Call<OcsResponse<List<OCShare>>>

    @FormUrlEncoded
    @POST("shares")
    fun addShare(
        remoteFilePath: String,
        shareType: ShareType,
        shareWith: String,
        publicUpload: Boolean,
        password: String,
        permissions: Int,
        getShareDetails: Boolean,
        note: String
        @Field("remoteFilePath") remoteFilePath: String,
        @Field("shareType") shareType: ShareType,
        @Field("shareWith") shareWith: String,
        @Field("publicUpload") publicUpload: Boolean,
        @Field("password") password: String,
        @Field("permissions") permissions: Int,
        @Field("getShareDetails") getShareDetails: Boolean,
        @Field("note") note: String
    ): Call<OcsResponse<List<OCShare>>>
}
+3 −1
Original line number Diff line number Diff line
@@ -202,9 +202,11 @@ public class NoteShareActivity extends BrandedActivity implements ShareeListAdap
            @Override
            public boolean onSuggestionClick(int position) {
                Cursor cursor = suggestionAdapter.getCursor();
                if (cursor.moveToPosition(position)) {
                if (cursor != null && cursor.moveToPosition(position)) {
                    String suggestion = cursor.getString(cursor.getColumnIndexOrThrow(SearchManager.SUGGEST_COLUMN_TEXT_1));
                    binding.searchView.setQuery(suggestion, false);

                    // TODO: Navigate to details
                }
                return true;
            }