From ede5bb0e90b4fad3fd6b72eb0baa5f610a639f3d Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 13 Oct 2020 14:57:45 +0200 Subject: [PATCH] Format files, in particular align `->` --- .idea/codeStyles/Project.xml | 11 +-- .../matrix/android/sdk/api/MatrixCallback.kt | 2 +- .../android/sdk/api/failure/MatrixError.kt | 36 +++++++ .../android/sdk/api/pushrules/Action.kt | 14 +-- .../android/sdk/api/raw/RawCacheStrategy.kt | 6 +- .../api/session/call/CallSignalingService.kt | 2 +- .../android/sdk/api/session/call/MxCall.kt | 1 + .../sdk/api/session/crypto/CryptoService.kt | 8 +- .../crypto/keysbackup/KeysBackupService.kt | 2 +- .../crypto/keysbackup/KeysBackupState.kt | 8 ++ .../keyshare/GossipingRequestListener.kt | 2 +- .../crypto/verification/VerificationMethod.kt | 2 + .../sdk/api/session/events/model/Event.kt | 1 + .../api/session/events/model/RelationType.kt | 3 + .../events/model/UnsignedRelationInfo.kt | 2 +- .../IntegrationManagerConfig.kt | 2 + .../room/members/ChangeMembershipState.kt | 2 +- .../session/room/model/PollSummaryContent.kt | 2 +- .../room/model/RoomGuestAccessContent.kt | 1 + .../room/model/RoomHistoryVisibility.kt | 3 + .../room/model/message/MessageAudioContent.kt | 4 +- .../room/model/message/MessageImageContent.kt | 4 +- .../model/message/MessageStickerContent.kt | 4 +- .../session/room/model/message/MessageType.kt | 1 + .../room/model/message/MessageVideoContent.kt | 4 +- .../sdk/api/session/room/send/SendState.kt | 7 ++ .../sdk/api/session/room/timeline/Timeline.kt | 1 + .../session/room/timeline/TimelineService.kt | 2 +- .../sdk/api/session/sync/FilterService.kt | 1 + .../matrix/android/sdk/api/util/Optional.kt | 2 +- .../sdk/internal/crypto/CryptoConstants.kt | 1 + .../internal/crypto/GossipingRequestState.kt | 3 +- .../crypto/MXMegolmExportEncryption.kt | 1 + .../crypto/OutgoingGossipingRequestManager.kt | 4 +- .../crypto/algorithms/IMXDecrypting.kt | 2 +- .../algorithms/megolm/MXMegolmDecryption.kt | 2 +- .../crypto/crosssigning/ShieldTrustUpdater.kt | 2 +- .../model/OlmInboundGroupSessionWrapper2.kt | 1 + .../model/event/RoomKeyWithHeldContent.kt | 4 + .../crypto/store/SavedKeyBackupKeyInfo.kt | 2 +- .../crypto/store/db/model/OlmSessionEntity.kt | 8 +- ...tgoingSASDefaultVerificationTransaction.kt | 6 +- .../DefaultVerificationTransaction.kt | 2 +- .../SASDefaultVerificationTransaction.kt | 4 + .../VerificationTransportRoomMessage.kt | 4 +- .../sdk/internal/database/RealmKeysUtils.kt | 2 +- .../sdk/internal/database/RealmQueryLatch.kt | 4 +- .../internal/database/model/ChunkEntity.kt | 4 +- .../sdk/internal/database/model/SyncEntity.kt | 2 +- .../EventAnnotationsSummaryEntityQuery.kt | 1 + .../riot/HomeServerConnectionConfig.java | 2 +- .../legacy/riot/WellKnownManagerConfig.kt | 2 +- .../internal/network/UnitConverterFactory.kt | 18 ++-- .../sdk/internal/raw/DefaultGetUrlTask.kt | 4 +- .../session/content/ImageCompressor.kt | 12 +-- .../session/content/UploadContentWorker.kt | 2 +- .../session/profile/AddThreePidTask.kt | 2 +- .../membership/RoomDisplayNameResolver.kt | 6 +- .../session/room/send/DefaultSendService.kt | 2 +- .../room/send/LocalEchoEventFactory.kt | 2 +- .../session/room/send/MarkdownParser.kt | 6 +- .../session/room/timeline/DefaultTimeline.kt | 8 +- .../room/timeline/TimelineEventDecryptor.kt | 1 + .../room/typing/DefaultTypingService.kt | 1 + .../session/sync/ReadReceiptHandler.kt | 6 +- .../internal/session/sync/RoomTagHandler.kt | 2 +- .../widgets/DefaultWidgetPostAPIMediator.kt | 1 + .../im/vector/app/EmojiCompatFontProvider.kt | 2 +- .../java/im/vector/app/EmojiCompatWrapper.kt | 2 +- .../dialogs/UnrecognizedCertificateDialog.kt | 12 +-- .../app/core/epoxy/VectorEpoxyHolder.kt | 2 +- .../bottomsheet/BottomSheetActionItem.kt | 7 ++ .../BottomSheetMessagePreviewItem.kt | 5 + .../BottomSheetQuickReactionsItem.kt | 3 + .../bottomsheet/BottomSheetSendStateItem.kt | 2 + .../epoxy/profiles/BaseProfileMatrixItem.kt | 1 + .../core/epoxy/profiles/ProfileActionItem.kt | 1 + .../core/epoxy/profiles/ProfileSectionItem.kt | 2 +- .../vector/app/core/error/ErrorFormatter.kt | 24 ++--- .../im/vector/app/core/files/FileSaver.kt | 18 ++-- .../app/core/glide/VectorGlideModelLoader.kt | 2 +- .../app/core/intent/ExternalIntentAnalyser.kt | 2 +- .../vector/app/core/linkify/VectorLinkify.kt | 2 +- .../app/core/platform/CheckableFrameLayout.kt | 6 +- .../VectorBaseBottomSheetDialogFragment.kt | 2 +- .../app/core/resources/DrawableProvider.kt | 1 + .../app/core/ui/views/PasswordStrengthBar.kt | 4 + .../preview/AttachmentPreviewItems.kt | 2 + .../preview/AttachmentsPreviewAction.kt | 4 +- .../preview/AttachmentsPreviewFragment.kt | 2 +- .../autocomplete/RecyclerViewPresenter.kt | 1 + .../command/AutocompleteCommandItem.kt | 3 + .../command/CommandAutocompletePolicy.kt | 2 +- .../app/features/call/SdpObserverAdapter.kt | 2 +- .../call/WebRtcPeerConnectionManager.kt | 2 +- .../app/features/command/ParsedCommand.kt | 2 +- .../contactsbook/ContactsBookViewModel.kt | 2 +- .../createdirect/CreateDirectRoomActivity.kt | 4 +- .../createdirect/CreateDirectRoomViewModel.kt | 2 +- .../createdirect/CreateDirectRoomViewState.kt | 2 +- .../KeysBackupRestoreSuccessFragment.kt | 1 + .../recover/BootstrapSharedViewModel.kt | 4 +- .../crypto/recover/BootstrapViewEvents.kt | 4 +- .../VerificationConclusionController.kt | 4 +- .../BottomSheetVerificationActionItem.kt | 4 + .../request/VerificationRequestController.kt | 4 +- .../app/features/home/LoadingFragment.kt | 2 +- .../app/features/home/RoomListDisplayMode.kt | 10 +- .../home/room/detail/RoomDetailAction.kt | 8 +- .../home/room/detail/RoomDetailFragment.kt | 4 +- .../home/room/detail/RoomDetailViewEvents.kt | 15 +-- .../home/room/detail/RoomDetailViewModel.kt | 98 +++++++++---------- .../home/room/detail/RoomDetailViewState.kt | 1 + .../room/detail/composer/TextComposerView.kt | 7 ++ .../home/room/detail/search/SearchFragment.kt | 2 +- .../room/detail/search/SearchViewModel.kt | 4 +- .../action/MessageSharedActionViewModel.kt | 2 +- .../timeline/factory/TimelineItemFactory.kt | 16 +-- .../format/DisplayableEventFormatter.kt | 10 +- .../timeline/format/NoticeEventFormatter.kt | 2 +- .../timeline/item/AbsBaseMessageItem.kt | 2 + .../detail/timeline/item/BaseEventItem.kt | 1 + .../timeline/item/MessageBlockCodeItem.kt | 1 + .../timeline/item/MessageImageVideoItem.kt | 5 + .../timeline/item/MessageInformationData.kt | 4 +- .../detail/timeline/item/MessageTextItem.kt | 3 + .../reactions/ReactionInfoSimpleItem.kt | 3 + .../home/room/detail/widget/RoomWidgetItem.kt | 1 + .../room/list/RoomListDisplayModeFilter.kt | 4 +- .../home/room/list/RoomListFragment.kt | 18 ++-- .../home/room/list/RoomListViewModel.kt | 8 +- .../home/room/list/RoomListViewState.kt | 4 +- .../home/room/list/RoomSummaryItem.kt | 2 + .../invite/InviteUsersToRoomActivity.kt | 2 +- .../invite/InviteUsersToRoomViewEvents.kt | 2 +- .../vector/app/features/login/LoginAction.kt | 1 + .../im/vector/app/features/login/SignMode.kt | 3 + .../features/media/ImageContentRenderer.kt | 5 +- .../features/notifications/NotifiableEvent.kt | 3 + .../NotificationDrawerManager.kt | 4 +- .../notifications/RoomEventGroupInfo.kt | 1 + .../app/features/roomdirectory/JoinState.kt | 1 + .../features/roomprofile/RoomProfileAction.kt | 4 +- .../roomprofile/RoomProfileViewModel.kt | 8 +- .../banned/RoomBannedMemberListFragment.kt | 2 +- .../settings/RoomSettingsViewModel.kt | 4 +- .../uploads/RoomUploadsFragment.kt | 4 +- .../uploads/media/UploadsVideoItem.kt | 6 +- .../settings/VectorSettingsActivity.kt | 4 +- ...ttingsNotificationsTroubleshootFragment.kt | 14 +-- .../VectorSettingsSecurityPrivacyFragment.kt | 2 +- .../threepids/ThreePidsSettingsController.kt | 4 +- .../threepids/ThreePidsSettingsFragment.kt | 2 +- .../threepids/ThreePidsSettingsViewModel.kt | 12 +-- ...ficationTroubleshootRecyclerViewAdapter.kt | 12 ++- .../troubleshoot/TestAccountSettings.kt | 16 +-- .../features/share/IncomingShareFragment.kt | 4 +- .../vector/app/features/share/SharedData.kt | 6 +- .../app/features/widgets/WidgetViewEvents.kt | 2 +- .../RoomWidgetPermissionActions.kt | 6 +- .../SignOutBottomSheetDialogFragment.kt | 4 +- 161 files changed, 477 insertions(+), 325 deletions(-) diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 89a7c466fd..b3719669fd 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -4,16 +4,7 @@ -