add missing files
This commit is contained in:
parent
11905513b7
commit
f9d0632a85
|
@ -0,0 +1,11 @@
|
|||
package org.joinmastodon.android.api.requests.statuses;
|
||||
|
||||
import org.joinmastodon.android.api.MastodonAPIRequest;
|
||||
import org.joinmastodon.android.model.Status;
|
||||
|
||||
public class SetStatusBookmarked extends MastodonAPIRequest<Status>{
|
||||
public SetStatusBookmarked(String id, boolean bookmarked){
|
||||
super(HttpMethod.POST, "/statuses/"+id+"/"+(bookmarked ? "bookmark" : "unbookmark"), Status.class);
|
||||
setRequestBody(new Object());
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:color="@color/bookmark_selected" android:state_selected="true"/>
|
||||
<item android:color="?android:textColorSecondary"/>
|
||||
</selector>
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--~ Copyright (c) 2022. ~ Microsoft Corporation. All rights reserved.-->
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/ic_fluent_bookmark_24_filled" android:state_activated="true"/>
|
||||
<item android:drawable="@drawable/ic_fluent_bookmark_24_filled" android:state_checked="true"/>
|
||||
<item android:drawable="@drawable/ic_fluent_bookmark_24_filled" android:state_selected="true"/>
|
||||
<item android:drawable="@drawable/ic_fluent_bookmark_24_regular"/>
|
||||
</selector>
|
Loading…
Reference in New Issue