Files
Android/app/lint-baseline.xml
T
2026-09-10 23:50:03 -04:00

335 lines
15 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 9.4.0" type="baseline" client="gradle" dependencies="false" name="AGP (9.4.0)" variant="all" version="9.4.0">
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but super method `Fragment.onViewCreated(…)` is allowing `@{Main,Ui}Thread`"
errorLine1=" presentConversationTitle(viewModel.recipientSnapshot)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationFragment.kt"
line="786"
column="5"/>
</issue>
<issue
id="ThreadConstraint"
message="Statement must run from `@{Main,Ui}Thread`, incompatible with earlier code that must run from `@WorkerThread`"
errorLine1=" updateMessageRequestAcceptedState(!viewModel.hasMessageRequestState)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationFragment.kt"
line="1850"
column="5"/>
</issue>
<issue
id="ThreadConstraint"
message="Statement must run from `@WorkerThread`, incompatible with earlier code that must run from `@{Main,Ui}Thread`"
errorLine1=" updateLinkPreviewState()"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationFragment.kt"
line="5195"
column="7"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but super method `View.onMeasure(…)` is allowing `@{Main,Ui}Thread`"
errorLine1=" getActiveFooter(messageRecord) == footer &amp;&amp;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java"
line="589"
column="9"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but super method `View.onMeasure(…)` is allowing `@{Main,Ui}Thread`"
errorLine1=" ConversationItemFooter activeFooter = getActiveFooter(messageRecord);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java"
line="707"
column="47"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but super method `RecipientForeverObserver.onRecipientChanged(…)` is allowing `@{Main,Ui}Thread`"
errorLine1=" setContactPhoto(modified);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java"
line="785"
column="7"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but super method `RecipientForeverObserver.onRecipientChanged(…)` is allowing `@{Main,Ui}Thread`"
errorLine1=" setSenderNameAndLabel(modified);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java"
line="786"
column="7"/>
</issue>
<issue
id="ThreadConstraint"
message="Statement must run from `@WorkerThread`, incompatible with earlier code that must run from `@{Main,Ui}Thread`"
errorLine1=" setThumbnailCorners(messageRecord, previousRecord, nextRecord, isGroupThread);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java"
line="1427"
column="9"/>
</issue>
<issue
id="ThreadConstraint"
message="Statement must run from `@{Main,Ui}Thread`, incompatible with earlier code that must run from `@WorkerThread`"
errorLine1=" mediaThumbnailStub.require().setImageResource(requestManager,"
errorLine2=" ^">
<location
file="src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java"
line="1568"
column="7"/>
</issue>
<issue
id="ThreadConstraint"
message="Statement must run from `@WorkerThread`, incompatible with earlier code that must run from `@{Main,Ui}Thread`"
errorLine1=" setSelectedConversations(selectedConversations);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/conversationlist/ConversationListItem.java"
line="290"
column="5"/>
</issue>
<issue
id="ThreadConstraint"
message="Statement must run from `@{Main,Ui}Thread`, incompatible with earlier code that must run from `@WorkerThread`"
errorLine1=" {"
errorLine2=" ^">
<location
file="src/main/java/org/thoughtcrime/securesms/conversation/ConversationUpdateItem.java"
line="196"
column="3"/>
</issue>
<issue
id="ThreadConstraint"
message="Statement must run from `@WorkerThread`, incompatible with earlier code that must run from `@{Main,Ui}Thread`"
errorLine1=" void submit() {"
errorLine2=" ^">
<location
file="src/main/java/org/thoughtcrime/securesms/delete/DeleteAccountViewModel.java"
line="71"
column="17"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but super method `Fragment.onViewCreated(…)` is allowing `@{Main,Ui}Thread`"
errorLine1=" this.bodyView.setText(Recipient.self().getAbout());"
errorLine2=" ~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/profiles/manage/EditAboutFragment.java"
line="125"
column="39"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but super method `Fragment.onViewCreated(…)` is allowing `@{Main,Ui}Thread`"
errorLine1=" onEmojiSelectedInternal(Optional.ofNullable(Recipient.self().getAboutEmoji()).orElse(&quot;&quot;));"
errorLine2=" ~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/profiles/manage/EditAboutFragment.java"
line="126"
column="61"/>
</issue>
<issue
id="ThreadConstraint"
message="Statement must run from `@{Main,Ui}Thread`, incompatible with earlier code that must run from `@WorkerThread`"
errorLine1=" if (TextUtils.isEmpty(initials)) {"
errorLine2=" ^">
<location
file="src/main/java/org/thoughtcrime/securesms/profiles/manage/EditProfileFragment.kt"
line="216"
column="7"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but super method `Fragment.onViewCreated(…)` is allowing `@{Main,Ui}Thread`"
errorLine1=" this.givenName.setText(Recipient.self().getProfileName().getGivenName());"
errorLine2=" ~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/profiles/manage/EditProfileNameFragment.java"
line="57"
column="38"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but super method `Fragment.onViewCreated(…)` is allowing `@{Main,Ui}Thread`"
errorLine1=" this.familyName.setText(Recipient.self().getProfileName().getFamilyName());"
errorLine2=" ~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/profiles/manage/EditProfileNameFragment.java"
line="58"
column="39"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but super method `DialogFragment.onCreateDialog(…)` is allowing `@{Main,Ui}Thread`"
errorLine1=" builder.setMessage(getString(R.string.GroupManagement_invite_single_user, recipient.getDisplayName(requireContext())));"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/groups/ui/managegroup/dialogs/GroupInviteSentDialog.java"
line="55"
column="91"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but context is allowing `@AnyThread`"
errorLine1=" if (!SignalStore.account().isRegistered() || SignalStore.account().getAci() == null || !Recipient.self().isRegistered()) {"
errorLine2=" ~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/jobs/GroupV2UpdateSelfProfileKeyJob.java"
line="86"
column="103"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but context is allowing `@AnyThread`"
errorLine1=" byte[] rawProfileKey = Recipient.self().getProfileKey();"
errorLine2=" ~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/jobs/GroupV2UpdateSelfProfileKeyJob.java"
line="96"
column="38"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but super method `Fragment.onCreate(…)` is allowing `@{Main,Ui}Thread`"
errorLine1=" MediaConstraints mediaConstraints = new PushMediaConstraints(SentMediaQuality.HIGH);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/scribbles/ImageEditorFragment.java"
line="217"
column="41"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but super method `Fragment.onCreateView(…)` is allowing `@{Main,Ui}Thread`"
errorLine1=" zoomingImageView.setImageUri(requestManager, uri, contentType, () -> events.onMediaReady());"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/mediapreview/ImageMediaPreviewPageFragment.java"
line="56"
column="22"/>
</issue>
<issue
id="ThreadConstraint"
message="Statement must run from `@{Main,Ui}Thread`, incompatible with earlier code that must run from `@WorkerThread`"
errorLine1=" thumbnailView.setImageResource(requestManager, slide, false, false);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/mediaoverview/MediaGalleryAllAdapter.java"
line="652"
column="7"/>
</issue>
<issue
id="ThreadConstraint"
message="Statement must run from `@{Main,Ui}Thread`, incompatible with earlier code that must run from `@WorkerThread`"
errorLine1=" if (slide != null) {"
errorLine2=" ^">
<location
file="src/main/java/org/thoughtcrime/securesms/mediaoverview/MediaGalleryAllAdapter.java"
line="704"
column="7"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but super method `Fragment.onViewCreated(…)` is allowing `@{Main,Ui}Thread`"
errorLine1=" bindToolbar(args.fromRecipientId, args.threadRecipientId, args.outgoing, args.showThread, args.date, args.messageId)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/mediapreview/MediaPreviewFragment.kt"
line="124"
column="5"/>
</issue>
<issue
id="ThreadConstraint"
message="Statement must run from `@WorkerThread`, incompatible with earlier code that must run from `@{Main,Ui}Thread`"
errorLine1=" bindTextViews(currentItem, currentState.showThread, currentState.messageBodies)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/mediapreview/MediaPreviewFragment.kt"
line="252"
column="5"/>
</issue>
<issue
id="ThreadConstraint"
message="Statement must run from `@WorkerThread`, incompatible with earlier code that must run from `@{Main,Ui}Thread`"
errorLine1=" bindTextViews(currentItem, currentState.showThread, currentState.messageBodies)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/mediapreview/MediaPreviewFragment.kt"
line="277"
column="5"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but super method `Activity.onCreate(…)` is allowing `@{Main,Ui}Thread`"
errorLine1=" routeApplicationState(locked);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/PassphraseRequiredActivity.java"
line="78"
column="5"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but super method `RecipientForeverObserver.onRecipientChanged(…)` is allowing `@{Main,Ui}Thread`"
errorLine1=" setQuoteAuthor(recipient);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/components/QuoteView.java"
line="273"
column="5"/>
</issue>
<issue
id="ThreadConstraint"
message="Call must be from `@WorkerThread`, but super method `Fragment.onViewCreated(…)` is allowing `@{Main,Ui}Thread`"
errorLine1=" if (!InAppDonations.hasAtLeastOnePaymentMethodAvailable()) {"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/org/thoughtcrime/securesms/badges/view/ViewBadgeBottomSheetDialogFragment.kt"
line="60"
column="25"/>
</issue>
</issues>