File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
app/src/main/java/com/addev/listaspam/util Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -164,31 +164,31 @@ class SpamUtils {
164164 return @launch
165165 }
166166
167- // Don't check number if is in contacts
168- val isNumberInAgenda = isNumberInAgenda(context, number)
169- if (isNumberInAgenda) {
170- callback(false )
171- return @launch
172- }
173-
174- if (shouldBlockNonContacts(context)) {
167+ // End call if the number is already blocked
168+ if (blockedNumbers?.contains(number) == true ) {
175169 handleSpamNumber(
176170 context,
177171 number,
178172 false ,
179- context.getString(R .string.block_non_contact ),
173+ context.getString(R .string.block_already_blocked_number ),
180174 callback
181175 )
182176 return @launch
183177 }
184178
185- // End call if the number is already blocked
186- if (blockedNumbers?.contains(number) == true ) {
179+ // Don't check number if is in contacts
180+ val isNumberInAgenda = isNumberInAgenda(context, number)
181+ if (isNumberInAgenda) {
182+ callback(false )
183+ return @launch
184+ }
185+
186+ if (shouldBlockNonContacts(context)) {
187187 handleSpamNumber(
188188 context,
189189 number,
190190 false ,
191- context.getString(R .string.block_already_blocked_number ),
191+ context.getString(R .string.block_non_contact ),
192192 callback
193193 )
194194 return @launch
You can’t perform that action at this time.
0 commit comments