Add blocked thing listing activity

Added activity that displays the blocked users and communities
This commit is contained in:
Balazs Toldi
2023-08-11 20:09:34 +02:00
parent 016801419f
commit e2a15ab925
34 changed files with 2299 additions and 40 deletions

View File

@@ -0,0 +1,10 @@
<vector android:height="24dp"
android:tint="#000000"
android:viewportHeight="24"
android:viewportWidth="24"
android:width="24dp"
xmlns:android="http://schemas.android.com/apk/res/android">
<path
android:fillColor="@android:color/white"
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,17h-2v-6h2v6zM13,9h-2L11,7h2v2z" />
</vector>

View File

@@ -30,9 +30,15 @@
app:showAsAction="never" />
<item
android:id="@+id/action_select_user_flair_view_subreddit_detail_activity"
android:id="@+id/block_community_view_subreddit_detail_activity"
android:orderInCategory="5"
android:title="@string/action_select_user_flair"
android:title="@string/block_community"
app:showAsAction="never" />
<item
android:id="@+id/unblock_community_view_subreddit_detail_activity"
android:orderInCategory="5"
android:title="@string/unblock_community"
app:showAsAction="never" />

View File

@@ -1353,4 +1353,13 @@
<string name="username_cannot_be_empty">The username field cannot be left empty.</string>
<string name="password_cannot_be_empty">The password field cannot be left empty.</string>
<string name="separate_down_and_up_votes">Separate Up and Down votes</string>
<string name="block_community_success">Community blocked!</string>
<string name="block_community_failed">Failed to block community</string>
<string name="unblock_community">Unblock Community</string>
<string name="unblock_community_success">Community unblocked!</string>
<string name="unblock_community_failed">Failed to unblock community</string>
<string name="instance_info">Instance Info</string>
<string name="blocked_communities">Blocked Communities</string>
<string name="blocked_users">Blocked users</string>
<string name="blocks">Blocks</string>
</resources>