From 27ba1dcb36dde19d15b8493935ca585dfd5a03f5 Mon Sep 17 00:00:00 2001 From: vmbaicu <49474725+vmbaicu@users.noreply.github.com> Date: Tue, 11 Jun 2019 20:33:12 +0300 Subject: [PATCH] [fenix] Fixes https://github.com/mozilla-mobile/fenix/issues/3281 - Fix Report and onboarding lint errors and issues (https://github.com/mozilla-mobile/fenix/pull/3339) --- .../org/mozilla/fenix/onboarding/OnboardingRadioButton.kt | 6 +++--- app/src/main/res/drawable/ic_report_issues.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/onboarding/OnboardingRadioButton.kt b/app/src/main/java/org/mozilla/fenix/onboarding/OnboardingRadioButton.kt index 9c5176d4fb..2653f7b252 100644 --- a/app/src/main/java/org/mozilla/fenix/onboarding/OnboardingRadioButton.kt +++ b/app/src/main/java/org/mozilla/fenix/onboarding/OnboardingRadioButton.kt @@ -6,16 +6,16 @@ package org.mozilla.fenix.onboarding import android.content.Context import android.util.AttributeSet -import android.widget.RadioButton +import androidx.appcompat.widget.AppCompatRadioButton import org.mozilla.fenix.R import org.mozilla.fenix.utils.Settings -class OnboardingRadioButton : RadioButton { +class OnboardingRadioButton(context: Context, attrs: AttributeSet) : AppCompatRadioButton(context, attrs) { private val radioGroups = mutableListOf() private var clickListener: (() -> Unit)? = null var key: Int = 0 - constructor(context: Context, attrs: AttributeSet) : super(context, attrs) { + init { attrs.let { context.theme.obtainStyledAttributes( it, diff --git a/app/src/main/res/drawable/ic_report_issues.xml b/app/src/main/res/drawable/ic_report_issues.xml index abc7400126..3b146413f0 100644 --- a/app/src/main/res/drawable/ic_report_issues.xml +++ b/app/src/main/res/drawable/ic_report_issues.xml @@ -12,5 +12,5 @@ + android:pathData="M12 2C7.7 2 5 4.8 5 9c0 3 2 5 3 6v4.5c0 1.8 2.4 2.5 4 2.5s4-0.7 4-2.5V15c1-1 3-3 3-6 0-4.2-2.7-7-7-7zm0 2C9.9 4 7 5.4 7 9c0 2 1.7 3.9 2.5 4.5 0.3 0.2 0.5 0.6 0.5 1v5l2 0.5 2-0.5v-5c0-0.4 0.2-0.8 0.5-1C15.3 12.9 17 11 17 9c0-3.6-2.9-5-5-5z" />