Skip to content

Commit c78622e

Browse files
committed
apply spotless
1 parent ae88aab commit c78622e

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

src/main/java/org/thoughtcrime/securesms/components/reminder/DozeReminder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ public static void dozeReminderTapped(Context context) {
114114
}
115115

116116
private static boolean isPushAvailableAndSufficient(Context context) {
117-
return FcmReceiveService.getToken() != null || UnifiedPushUtils.hasPushDistributor(context, true);
117+
return FcmReceiveService.getToken() != null
118+
|| UnifiedPushUtils.hasPushDistributor(context, true);
118119
}
119120

120121
public static void maybeAskDirectly(Context context) {

src/main/java/org/thoughtcrime/securesms/util/Prefs.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,9 @@ public static void setReliableService(Context context, boolean value) {
246246
}
247247

248248
public static boolean reliableService(Context context) {
249-
boolean isPushEnabled = isFcmPushEnabled(context) || UnifiedPushUtils.hasPushDistributor(context, true);
250-
return getBooleanPreference(context, RELIABLE_SERVICE_PREF, !isPushEnabled);
249+
boolean isPushEnabled =
250+
isFcmPushEnabled(context) || UnifiedPushUtils.hasPushDistributor(context, true);
251+
return getBooleanPreference(context, RELIABLE_SERVICE_PREF, !isPushEnabled);
251252
}
252253

253254
/**

src/main/java/org/thoughtcrime/securesms/util/SendRelayedMessageUtil.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,16 @@ private static void sendMultipleMsgs(
119119
String text = sharedText;
120120

121121
if (uris.size() == 1) {
122-
sendMsgRecodingVideo(context, chatId, createMessage(context, uris.get(0), msgType, sharedHtml, subject, text));
122+
sendMsgRecodingVideo(
123+
context, chatId, createMessage(context, uris.get(0), msgType, sharedHtml, subject, text));
123124
} else {
124125
if (text != null || sharedHtml != null) {
125-
sendMsgRecodingVideo(context, chatId, createMessage(context, null, null, sharedHtml, subject, text));
126+
sendMsgRecodingVideo(
127+
context, chatId, createMessage(context, null, null, sharedHtml, subject, text));
126128
}
127129
for (Uri uri : uris) {
128-
sendMsgRecodingVideo(context, chatId, createMessage(context, uri, null, null, subject, null));
130+
sendMsgRecodingVideo(
131+
context, chatId, createMessage(context, uri, null, null, subject, null));
129132
}
130133
}
131134
}

0 commit comments

Comments
 (0)