1
0
Fork 0

For #4774 - Use vector drawable compat (#4811)

master
Tiger Oakes 2019-08-20 13:43:02 -04:00 committed by Sawyer Blatz
parent ad98b2f3ea
commit 9ee8c00928
3 changed files with 4 additions and 2 deletions

View File

@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Remove forced focus of toolbar on homescreen
- #4529 - Fixed an issue where the app would sometimes return to a blank toolbar
- #4427 - Fixed an issue where the app would sometimes return to the home fragment
- #4774 - Fixed how the tracking protection and HTTP icon appear in quick settings on Android 5 and 6.
### Removed

View File

@ -111,7 +111,7 @@ class QuickSettingsUIView(
drawableTint = R.color.photonGreen50
} else {
stringId = R.string.quick_settings_sheet_insecure_connection
drawableId = R.drawable.mozac_ic_globe
drawableId = R.drawable.mozac_ic_broken_lock
drawableTint = R.color.photonRed50
}

View File

@ -8,6 +8,7 @@ import android.view.View
import android.widget.CompoundButton
import android.widget.Switch
import android.widget.TextView
import androidx.appcompat.content.res.AppCompatResources
import androidx.core.view.isVisible
import io.reactivex.Observer
import mozilla.components.support.ktx.android.view.putCompoundDrawablesRelativeWithIntrinsicBounds
@ -23,7 +24,7 @@ class TrackingProtectionSettingView(
init {
trackingProtectionSwitch.putCompoundDrawablesRelativeWithIntrinsicBounds(
start = container.context.getDrawable(R.drawable.ic_tracking_protection)
start = AppCompatResources.getDrawable(container.context, R.drawable.ic_tracking_protection)
)
}