From 2bb521fae81ff95d3decfcabcebc68bff4112f7b Mon Sep 17 00:00:00 2001 From: Chris Banes Date: Tue, 17 Dec 2019 12:43:22 +1100 Subject: [PATCH 1/2] Change continuation indent to 4 chars --- .idea/codeStyles/Project.xml | 5 ++ .../tivi/appinitializers/EmojiInitializer.kt | 10 +-- .../main/java/app/tivi/home/HomeActivity.kt | 10 +-- .../main/java/app/tivi/inject/AppModule.kt | 34 ++++---- .../settings/SettingsPreferenceFragment.kt | 8 +- .../tivi/showdetails/ShowDetailsActivity.kt | 10 +-- .../java/app/tivi/util/TiviDateFormatter.kt | 16 ++-- .../tivi/extensions/CoroutineExtensions.kt | 19 +++-- .../java/app/tivi/TiviFragmentWithBinding.kt | 4 +- .../tivi/databinding/TiviBindingMethods.kt | 16 ++-- .../app/tivi/util/EntryGridEpoxyController.kt | 2 +- .../java/app/tivi/util/EntryGridFragment.kt | 12 +-- .../main/java/app/tivi/util/EntryViewModel.kt | 10 +-- .../app/tivi/common/epoxy/EpoxyExtensions.kt | 4 +- .../ImageLoadingBindingAdapters.kt | 48 +++++------ .../main/java/app/tivi/TiviMvRxViewModel.kt | 14 ++-- .../tivi/extensions/MotionLayoutExtensions.kt | 2 +- .../MultipleBackStackNavigationExtensions.kt | 72 ++++++++--------- .../tivi/extensions/RecyclerViewExtensions.kt | 12 +-- .../extensions/SharedElementExtensions.kt | 8 +- .../java/app/tivi/home/HomeTextCreator.kt | 4 +- .../app/tivi/ui/AuthStateMenuItemBinder.kt | 6 +- .../src/main/java/app/tivi/ui/ScrimUtil.kt | 16 ++-- .../ui/graphics/ImageLoadingColorMatrix.kt | 12 ++- .../motionlayout/TransitionListenerAdapter.kt | 3 +- .../recyclerview/TiviLinearSmoothScroller.kt | 2 +- .../java/app/tivi/ui/transitions/BabySlide.kt | 22 ++--- .../ui/transitions/ColumnedChangeBounds.kt | 15 ++-- .../ui/transitions/DrawableAlphaProperty.kt | 4 +- .../ui/transitions/GridToGridTransitioner.kt | 2 +- .../tivi/ui/transitions/ViewChangeBounds.kt | 50 ++++++------ .../app/tivi/ui/transitions/ViewGroupUtils.kt | 2 +- .../tivi/ui/widget/BaselineGridTextView.kt | 8 +- .../tivi/ui/widget/HeaderHolderFrameLayout.kt | 6 +- .../widget/MaterialShapeConstraintLayout.kt | 4 +- .../tivi/ui/widget/NestedChildMotionLayout.kt | 22 ++--- .../ui/widget/TopLeftCutoutBackgroundView.kt | 8 +- .../main/java/app/tivi/data/DatabaseInject.kt | 4 +- .../app/tivi/data/FlowPagedListBuilder.kt | 12 +-- .../java/app/tivi/data/TiviRoomDatabase.kt | 44 +++++----- .../java/app/tivi/data/TiviTypeConverters.kt | 4 +- .../java/app/tivi/data/TestDatabaseInject.kt | 4 +- .../tivi/data/dao/EpisodeWatchEntryTest.kt | 10 +-- .../java/app/tivi/data/dao/EpisodesTest.kt | 14 ++-- .../java/app/tivi/data/dao/SeasonsTest.kt | 8 +- .../FollowedShowRepositoryTest.kt | 24 +++--- .../SeasonsEpisodesRepositoryTest.kt | 24 +++--- .../test/java/app/tivi/utils/SampleData.kt | 38 ++++----- .../java/app/tivi/utils/TiviTestDatabase.kt | 46 +++++------ .../java/app/tivi/data/daos/EpisodesDao.kt | 6 +- .../java/app/tivi/data/entities/Episode.kt | 24 +++--- .../tivi/data/entities/EpisodeWatchEntry.kt | 26 +++--- .../tivi/data/entities/FollowedShowEntry.kt | 24 +++--- .../app/tivi/data/entities/LastRequest.kt | 4 +- .../tivi/data/entities/PopularShowEntry.kt | 22 ++--- .../data/entities/RecommendedShowEntry.kt | 22 ++--- .../tivi/data/entities/RelatedShowEntry.kt | 40 +++++----- .../java/app/tivi/data/entities/Season.kt | 22 ++--- .../app/tivi/data/entities/ShowTmdbImage.kt | 20 ++--- .../java/app/tivi/data/entities/TiviEntity.kt | 5 +- .../java/app/tivi/data/entities/TiviShow.kt | 11 +-- .../java/app/tivi/data/entities/TraktUser.kt | 4 +- .../tivi/data/entities/TrendingShowEntry.kt | 22 ++--- .../tivi/data/entities/WatchedShowEntry.kt | 22 ++--- .../data/mappers/EpisodeIdToTraktIdMapper.kt | 3 +- .../data/mappers/SeasonIdToTraktIdMapper.kt | 3 +- .../tivi/data/mappers/ShowIdToTmdbIdMapper.kt | 2 +- .../data/mappers/TmdbBaseShowToTiviShow.kt | 6 +- .../tivi/data/mappers/TmdbEpisodeToEpisode.kt | 12 +-- .../data/mappers/TmdbImagesToShowImages.kt | 20 ++--- .../mappers/TmdbShowResultsPageToTiviShows.kt | 16 ++-- .../tivi/data/mappers/TmdbShowToTiviShow.kt | 14 ++-- .../data/mappers/TraktBaseShowToTiviShow.kt | 2 +- .../data/mappers/TraktEpisodeToEpisode.kt | 18 ++--- .../TraktHistoryItemToEpisodeWatchEntry.kt | 6 +- .../TraktListEntryToFollowedShowEntry.kt | 6 +- .../tivi/data/mappers/TraktSeasonToSeason.kt | 22 ++--- .../tivi/data/mappers/TraktShowToTiviShow.kt | 72 ++++++++--------- .../app/tivi/data/mappers/UserToTraktUser.kt | 14 ++-- .../episodes/EpisodeWatchStore.kt | 8 +- .../episodes/SeasonsEpisodesRepository.kt | 80 +++++++++---------- .../episodes/SeasonsEpisodesStore.kt | 22 ++--- .../episodes/TmdbEpisodeDataSource.kt | 6 +- .../episodes/TraktEpisodeDataSource.kt | 6 +- .../TraktSeasonsEpisodesDataSource.kt | 34 ++++---- .../followedshows/FollowedShowsRepository.kt | 8 +- .../followedshows/FollowedShowsStore.kt | 10 +-- .../TraktFollowedShowsDataSource.kt | 28 +++---- .../TraktPopularShowsDataSource.kt | 4 +- .../TraktRecommendedShowsDataSource.kt | 4 +- .../TmdbRelatedShowsDataSource.kt | 4 +- .../TraktRelatedShowsDataSource.kt | 6 +- .../search/TmdbSearchDataSource.kt | 4 +- .../data/repositories/shows/ShowRepository.kt | 8 +- .../tivi/data/repositories/shows/ShowStore.kt | 48 +++++------ .../repositories/shows/TmdbShowDataSource.kt | 4 +- .../shows/TmdbShowImagesDataSource.kt | 4 +- .../repositories/shows/TraktShowDataSource.kt | 20 ++--- .../traktusers/TraktUsersDataSource.kt | 4 +- .../TraktTrendingShowsDataSource.kt | 4 +- .../TraktWatchedShowsDataSource.kt | 4 +- .../java/app/tivi/data/syncers/ItemSyncer.kt | 28 +++---- .../main/java/app/tivi/domain/Interactor.kt | 4 +- .../interactors/ChangeSeasonWatchedStatus.kt | 6 +- .../domain/interactors/UpdateFollowedShows.kt | 8 +- .../observers/ObservePagedFollowedShows.kt | 6 +- .../observers/ObservePagedPopularShows.kt | 6 +- .../observers/ObservePagedRecommendedShows.kt | 6 +- .../observers/ObservePagedTrendingShows.kt | 6 +- .../observers/ObservePagedWatchedShows.kt | 6 +- .../main/java/app/tivi/tasks/ShowTasksImpl.kt | 46 +++++------ .../app/tivi/tasks/SyncShowWatchedProgress.kt | 4 +- .../java/app/tivi/tasks/inject/TasksModule.kt | 4 +- .../tivi/tasks/inject/TiviWorkerFactory.kt | 2 +- .../main/java/app/tivi/tmdb/TmdbImageSizes.kt | 36 ++++----- .../main/java/app/tivi/tmdb/TmdbManager.kt | 8 +- .../java/app/tivi/trakt/TraktAuthModule.kt | 14 ++-- .../main/java/app/tivi/trakt/TraktManager.kt | 10 +-- .../tivi/home/discover/DiscoverFragment.kt | 40 +++++----- .../EpisodeDetailsEpoxyController.kt | 2 +- .../episodedetails/EpisodeDetailsFragment.kt | 26 +++--- .../home/followed/FollowedEpoxyController.kt | 2 +- .../tivi/home/followed/FollowedFragment.kt | 14 ++-- .../tivi/home/followed/FollowedViewModel.kt | 48 +++++------ .../tivi/home/popular/PopularShowsFragment.kt | 34 ++++---- .../recommended/RecommendedShowsFragment.kt | 34 ++++---- .../app/tivi/home/search/SearchFragment.kt | 6 +- .../app/tivi/home/search/SearchViewModel.kt | 16 ++-- .../details/ShowDetailsEpoxyController.kt | 14 ++-- .../details/ShowDetailsFragment.kt | 24 +++--- .../details/ShowDetailsFragmentViewModel.kt | 18 ++--- .../details/ShowDetailsTextCreator.kt | 20 ++--- .../home/trending/TrendingShowsFragment.kt | 34 ++++---- .../home/watched/WatchedEpoxyController.kt | 2 +- .../app/tivi/home/watched/WatchedFragment.kt | 14 ++-- .../app/tivi/home/watched/WatchedViewModel.kt | 44 +++++----- 136 files changed, 1079 insertions(+), 1057 deletions(-) diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 64e46cf350..8c2ca30ef1 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -130,6 +130,11 @@