chinwag-android/app/src/main/java/com/keylesspalace/tusky/view
Christophe Beyls 05c7e7b806
Fix various lint warnings (#4409)
- Remove empty file `ExampleInstrumentedTest.java`.
- Replace deprecated `MigrationTestHelper` constructor call.
- Add reified inline extension methods for `Bundle` and `Intent` to
retrieve `Parcelable` and `Serializable` objects by calling the core
`BundleCompat` and `IntentCompat` methods, to allow shorter syntax and
removing the need to pass the class explicitly.
- Replace deprecated `drawable.setColorFilter()` with simpler
`drawable.setTint()` (uses blend mode `SRC_IN` by default, has the same
effect as `SRC_ATOP` when the source is a color).
- Rename shadowed variables (mostly caught exceptions).
- Remove unnecessary `.orEmpty()` on non-null fields.
- Replace `.size() == 0` with `.isEmpty()`.
- Prevent `NullPointerException` when `account.getDisplayName()` is
`null` in `StatusBaseViewHolder.setDisplayName()`.
- Declare `customEmojis` argument as non-null in
`StatusBaseViewHolder.setDisplayName()` because it calls
`CustomEmojiHelper.emojify()` which now requires it to be non-null.
- Prevent `NullPointerException` when no matching filter is found in
`StatusBaseViewHolder.setupFilterPlaceholder()`.
- Remove deprecated call to `setTargetFragment()` (target fragment is
not used anyway).
- Remove deprecated call to `isUserVisibleHint()` and test if the view
has been destroyed instead.
- Remove some unused imports.
- Remove unnecessary casts.
- Rename arguments to supertype names when a warning is shown.
- Prevent a potential memory leak by clearing the
`toolbarVisibilityDisposable` reference in `onDestroyView()`.
2024-05-05 08:34:41 +02:00
..
AdaptiveTabLayout.kt 2512: Allow more than 5 tabs (#4051) 2023-10-11 09:54:01 +02:00
BackgroundMessageView.kt 3530: Hide help text if the message view is reconfigured (ie an error occurred). 2023-08-07 09:44:58 +02:00
BezelImageView.kt Convert BezelImageView, EndlessOnScrollListener, ComposeScheduleView, ProgressImageView to Kotlin (#3147) 2023-01-13 19:49:56 +01:00
ClickableSpanTextView.kt full sdk 34 support (#4224) 2024-02-23 10:27:19 +01:00
EmojiPicker.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
EndlessOnScrollListener.kt Convert BezelImageView, EndlessOnScrollListener, ComposeScheduleView, ProgressImageView to Kotlin (#3147) 2023-01-13 19:49:56 +01:00
GraphView.kt full sdk 34 support (#4224) 2024-02-23 10:27:19 +01:00
LicenseCard.kt upgrade ktlint plugin to 12.0.3 (#4169) 2024-01-04 17:00:55 +01:00
MediaPreviewImageView.kt upgrade ktlint plugin to 12.0.3 (#4169) 2024-01-04 17:00:55 +01:00
MediaPreviewLayout.kt Fix various lint warnings (#4409) 2024-05-05 08:34:41 +02:00
MuteAccountDialog.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
SliderPreference.kt upgrade ktlint plugin to 12.0.3 (#4169) 2024-01-04 17:00:55 +01:00