forked from sk22/megalodon
-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'megalodon_main/main'
# Conflicts: # mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java # mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java # mastodon/src/main/res/layout/display_item_poll_option.xml # mastodon/src/main/res/menu/profile_own.xml # mastodon/src/main/res/values-pt-rBR/strings_sk.xml # mastodon/src/main/res/values/strings_sk.xml
- Loading branch information
Showing
9 changed files
with
85 additions
and
41 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
...ain/java/org/joinmastodon/android/fragments/account_list/BlockedAccountsListFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package org.joinmastodon.android.fragments.account_list; | ||
|
||
import android.net.Uri; | ||
import android.os.Bundle; | ||
|
||
import org.joinmastodon.android.R; | ||
import org.joinmastodon.android.api.requests.HeaderPaginationRequest; | ||
import org.joinmastodon.android.api.requests.accounts.GetAccountBlocks; | ||
import org.joinmastodon.android.model.Account; | ||
import org.joinmastodon.android.ui.viewholders.AccountViewHolder; | ||
|
||
public class BlockedAccountsListFragment extends AccountRelatedAccountListFragment{ | ||
|
||
@Override | ||
public void onCreate(Bundle savedInstanceState){ | ||
super.onCreate(savedInstanceState); | ||
setTitle(R.string.sk_blocked_accounts); | ||
} | ||
|
||
@Override | ||
public HeaderPaginationRequest<Account> onCreateRequest(String maxID, int count){ | ||
return new GetAccountBlocks(maxID, count); | ||
} | ||
|
||
@Override | ||
protected void onConfigureViewHolder(AccountViewHolder holder){ | ||
super.onConfigureViewHolder(holder); | ||
holder.setStyle(AccountViewHolder.AccessoryType.NONE, false); | ||
} | ||
|
||
@Override | ||
public Uri getWebUri(Uri.Builder base) { | ||
return super.getWebUri(base).buildUpon() | ||
.appendPath("/blocks").build(); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
.../main/java/org/joinmastodon/android/fragments/account_list/MutedAccountsListFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package org.joinmastodon.android.fragments.account_list; | ||
|
||
import android.net.Uri; | ||
import android.os.Bundle; | ||
|
||
import org.joinmastodon.android.R; | ||
import org.joinmastodon.android.api.requests.HeaderPaginationRequest; | ||
import org.joinmastodon.android.api.requests.accounts.GetAccountMutes; | ||
import org.joinmastodon.android.model.Account; | ||
import org.joinmastodon.android.ui.viewholders.AccountViewHolder; | ||
|
||
public class MutedAccountsListFragment extends AccountRelatedAccountListFragment{ | ||
|
||
@Override | ||
public void onCreate(Bundle savedInstanceState){ | ||
super.onCreate(savedInstanceState); | ||
setTitle(R.string.sk_muted_accounts); | ||
} | ||
|
||
@Override | ||
public HeaderPaginationRequest<Account> onCreateRequest(String maxID, int count){ | ||
return new GetAccountMutes(maxID, count); | ||
} | ||
|
||
@Override | ||
protected void onConfigureViewHolder(AccountViewHolder holder){ | ||
super.onConfigureViewHolder(holder); | ||
holder.setStyle(AccountViewHolder.AccessoryType.NONE, false); | ||
} | ||
|
||
@Override | ||
public Uri getWebUri(Uri.Builder base) { | ||
return super.getWebUri(base).buildUpon() | ||
.appendPath("/mutes").build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
mastodon/src/main/res/drawable/bg_poll_option_clickable_inset.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
mastodon/src/main/res/drawable/bg_poll_option_voted_inset.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters