Code comments clarifying features being hidden on some servers

This commit is contained in:
Jacocococo 2024-08-27 22:21:47 +02:00
parent f146067cda
commit 9426a9bc59
2 changed files with 2 additions and 2 deletions

View File

@ -991,7 +991,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
else hidePrivateNote();
invalidateOptionsMenu();
actionButton.setVisibility(View.VISIBLE);
notifyButton.setVisibility(relationship.following && !isInstanceIceshrimpJs() ? View.VISIBLE : View.GONE);
notifyButton.setVisibility(relationship.following && !isInstanceIceshrimpJs() ? View.VISIBLE : View.GONE); // always hide notify button on Iceshrimp-JS because it's unsupported on the server
UiUtils.setRelationshipToActionButtonM3(relationship, actionButton);
actionProgress.setIndeterminateTintList(actionButton.getTextColors());
notifyProgress.setIndeterminateTintList(notifyButton.getTextColors());

View File

@ -64,7 +64,7 @@ public class SettingsMainFragment extends BaseSettingsFragment<Void>{
));
Instance instance=AccountSessionManager.getInstance().getInstanceInfo(account.domain);
if(!instance.isAkkoma() && !instance.isIceshrimp()){
if(!instance.isAkkoma() && !instance.isIceshrimp()){ // hide filter settings on Akkoma and Iceshrimp because the servers don't support the feature
data.add(3, new ListItem<>(R.string.settings_filters, 0, R.drawable.ic_fluent_filter_24_regular, this::onFiltersClick));
}