chore: make app compile again
This commit is contained in:
parent
c5a61c3916
commit
5c071aa3ec
|
@ -147,7 +147,6 @@ public class GlobalUserPreferences{
|
||||||
uniformNotificationIcon=prefs.getBoolean("uniformNotificationIcon", false);
|
uniformNotificationIcon=prefs.getBoolean("uniformNotificationIcon", false);
|
||||||
showDividers =prefs.getBoolean("showDividers", false);
|
showDividers =prefs.getBoolean("showDividers", false);
|
||||||
relocatePublishButton=prefs.getBoolean("relocatePublishButton", true);
|
relocatePublishButton=prefs.getBoolean("relocatePublishButton", true);
|
||||||
compactReblogReplyLine=prefs.getBoolean("compactReblogReplyLine", true);
|
|
||||||
defaultToUnlistedReplies=prefs.getBoolean("defaultToUnlistedReplies", false);
|
defaultToUnlistedReplies=prefs.getBoolean("defaultToUnlistedReplies", false);
|
||||||
doubleTapToSearch =prefs.getBoolean("doubleTapToSearch", true);
|
doubleTapToSearch =prefs.getBoolean("doubleTapToSearch", true);
|
||||||
doubleTapToSwipe =prefs.getBoolean("doubleTapToSwipe", true);
|
doubleTapToSwipe =prefs.getBoolean("doubleTapToSwipe", true);
|
||||||
|
@ -224,7 +223,6 @@ public class GlobalUserPreferences{
|
||||||
.putBoolean("defaultToUnlistedReplies", defaultToUnlistedReplies)
|
.putBoolean("defaultToUnlistedReplies", defaultToUnlistedReplies)
|
||||||
.putBoolean("doubleTapToSearch", doubleTapToSearch)
|
.putBoolean("doubleTapToSearch", doubleTapToSearch)
|
||||||
.putBoolean("doubleTapToSwipe", doubleTapToSwipe)
|
.putBoolean("doubleTapToSwipe", doubleTapToSwipe)
|
||||||
.putBoolean("compactReblogReplyLine", compactReblogReplyLine)
|
|
||||||
.putBoolean("replyLineAboveHeader", replyLineAboveHeader)
|
.putBoolean("replyLineAboveHeader", replyLineAboveHeader)
|
||||||
.putBoolean("confirmBeforeReblog", confirmBeforeReblog)
|
.putBoolean("confirmBeforeReblog", confirmBeforeReblog)
|
||||||
.putBoolean("swapBookmarkWithBoostAction", swapBookmarkWithBoostAction)
|
.putBoolean("swapBookmarkWithBoostAction", swapBookmarkWithBoostAction)
|
||||||
|
|
|
@ -917,7 +917,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
publishButton.setOnClickListener(v->{
|
(GlobalUserPreferences.relocatePublishButton ? publishButtonRelocated : publishButton).setOnClickListener(v->{
|
||||||
Consumer<Boolean> draftCheckComplete=(isDraft)->{
|
Consumer<Boolean> draftCheckComplete=(isDraft)->{
|
||||||
if(GlobalUserPreferences.altTextReminders && !isDraft) checkAltTextsAndPublish();
|
if(GlobalUserPreferences.altTextReminders && !isDraft) checkAltTextsAndPublish();
|
||||||
else publish();
|
else publish();
|
||||||
|
|
|
@ -291,7 +291,7 @@ public abstract class StatusDisplayItem{
|
||||||
contentItems.add(new AudioStatusDisplayItem(parentID, fragment, statusForContent, att));
|
contentItems.add(new AudioStatusDisplayItem(parentID, fragment, statusForContent, att));
|
||||||
}
|
}
|
||||||
if(att.type==Attachment.Type.UNKNOWN){
|
if(att.type==Attachment.Type.UNKNOWN){
|
||||||
contentItems.add(new FileStatusDisplayItem(parentID, fragment, att, statusForContent));
|
contentItems.add(new FileStatusDisplayItem(parentID, fragment, att));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(statusForContent.poll!=null){
|
if(statusForContent.poll!=null){
|
||||||
|
|
|
@ -830,30 +830,10 @@ public class UiUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void performAccountAction(Activity activity, Account account, String accountID, Relationship relationship, Button button, Consumer<Boolean> progressCallback, Consumer<Relationship> resultCallback) {
|
public static void performAccountAction(Activity activity, Account account, String accountID, Relationship relationship, Button button, Consumer<Boolean> progressCallback, Consumer<Relationship> resultCallback) {
|
||||||
if(relationship == null){
|
|
||||||
UiUtils.lookupAccount(button.getContext(), account, accountID, null, lookUpAccount -> {
|
|
||||||
if (lookUpAccount != null) {
|
|
||||||
progressCallback.accept(true);
|
|
||||||
follow(activity, accountID, lookUpAccount, true, progressCallback, resultCallback);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (relationship.blocking) {
|
if (relationship.blocking) {
|
||||||
confirmToggleBlockUser(activity, accountID, account, true, resultCallback);
|
confirmToggleBlockUser(activity, accountID, account, true, resultCallback);
|
||||||
} else if (relationship.muting) {
|
} else if (relationship.muting) {
|
||||||
confirmToggleMuteUser(activity, accountID, account, true, resultCallback);
|
confirmToggleMuteUser(activity, accountID, account, true, resultCallback);
|
||||||
} else if (!relationship.following && !relationship.requested) {
|
|
||||||
follow(activity, accountID, account, true, progressCallback, resultCallback);
|
|
||||||
} else if (GlobalUserPreferences.confirmUnfollow){
|
|
||||||
showConfirmationAlert(activity,
|
|
||||||
activity.getString(R.string.mo_confirm_unfollow_title),
|
|
||||||
activity.getString(R.string.mo_confirm_unfollow, account.getDisplayUsername()),
|
|
||||||
activity.getString(R.string.unfollow),
|
|
||||||
0,
|
|
||||||
() -> follow(activity, accountID, account, false, progressCallback, resultCallback),
|
|
||||||
() -> progressCallback.accept(false));
|
|
||||||
} else {
|
} else {
|
||||||
Runnable action=()->{
|
Runnable action=()->{
|
||||||
progressCallback.accept(true);
|
progressCallback.accept(true);
|
||||||
|
|
Loading…
Reference in New Issue