forked from software-mansion/react-native-screens
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(Android): fix lint warning of CustomToolbar component (software…
…-mansion#2176) ## Description Just noticed while working on software-mansion#2169 that we got a warning in CustomToolbar. Edit: followed review suggestions and suppressed lints for all our view, where this was requried. ## Changes Suppressed lint on missing constructors. We're safe to miss these there, as this view is constructed only programatically (we do not inflate any of our views). ## Test code and steps to reproduce N/A ## Checklist - [ ] Ensured that CI passes
- Loading branch information
Showing
3 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
android/src/main/java/com/swmansion/rnscreens/CustomToolbar.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
package com.swmansion.rnscreens | ||
|
||
import android.annotation.SuppressLint | ||
import android.content.Context | ||
import androidx.appcompat.widget.Toolbar | ||
|
||
// This class is used to store config closer to search bar | ||
@SuppressLint("ViewConstructor") // Only we construct this view, it is never inflated. | ||
open class CustomToolbar(context: Context, val config: ScreenStackHeaderConfig) : Toolbar(context) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters