Skip to content

Commit 88a7a70

Browse files
committed
Move InputModeTabLayout to common
1 parent 74ddd12 commit 88a7a70

File tree

66 files changed

+128
-93
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+128
-93
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.duckduckgo.duckchat.impl.inputscreen.ui.view
17+
package com.duckduckgo.common.ui.view.tablayout
1818

1919
import android.content.Context
2020
import android.graphics.Color
@@ -26,14 +26,14 @@ import androidx.core.content.ContextCompat
2626
import com.duckduckgo.anvil.annotations.InjectWith
2727
import com.duckduckgo.common.ui.store.AppTheme
2828
import com.duckduckgo.di.scopes.ViewScope
29-
import com.duckduckgo.duckchat.impl.R
3029
import com.google.android.material.color.MaterialColors
3130
import com.google.android.material.shape.CornerFamily
3231
import com.google.android.material.shape.MaterialShapeDrawable
3332
import com.google.android.material.shape.ShapeAppearanceModel
3433
import com.google.android.material.tabs.TabLayout
3534
import dagger.android.support.AndroidSupportInjection
3635
import javax.inject.Inject
36+
import com.duckduckgo.mobile.android.R
3737

3838
@InjectWith(scope = ViewScope::class)
3939
class InputModeTabLayout @JvmOverloads constructor(
@@ -59,7 +59,7 @@ class InputModeTabLayout @JvmOverloads constructor(
5959
clipToOutline = true
6060
}
6161
override fun onAttachedToWindow() {
62-
AndroidSupportInjection.inject(this)
62+
AndroidSupportInjection.Companion.inject(this)
6363
super.onAttachedToWindow()
6464

6565
val searchTabView = getTabAt(0)!!.view
@@ -107,7 +107,7 @@ class InputModeTabLayout @JvmOverloads constructor(
107107
initializeElevationOverlay(context)
108108
val shadowColor = MaterialColors.getColor(
109109
context,
110-
com.duckduckgo.mobile.android.R.attr.daxColorInputModeIndicatorShadow,
110+
R.attr.daxColorInputModeIndicatorShadow,
111111
Color.BLACK,
112112
)
113113
setShadowColor(shadowColor)

0 commit comments

Comments
 (0)