• Peter Kotwicz's avatar
    Fix UseSwitchCompatOrMaterialXml lint errors · 8442f938
    Peter Kotwicz authored
    This CL replaces android.widget.Switch with
    androidx.appcompat.widget.SwitchCompat in the keyboard accessory to
    silence a UseSwitchCompatOrMaterialXml lint error. This is in preparation
    for rolling the androidx.appcompat to version 1.3.0
    
    Replacing android.widget.Switch with
    androidx.appcompat.widget.SwitchCompat for the keyboard accessoory does
    cause very minor visual changes. (I only noticed them by comparing
    screenshots using an image editor)
    
    This CL also suppresses the UseSwitchCompatOrMaterialXml lint error for
    R.id.incognito_switch The lint error is suppressed because using
    androidx.appcompat.widget.SwitchCompat causes noticeable visual changes.
    
    BUG=1064277
    
    Change-Id: I976c675b057451aa4b9895cb06b9d665223ca0f6
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2569962
    Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org>
    Reviewed-by: default avatarFriedrich [CET] <fhorschig@chromium.org>
    Reviewed-by: default avatarIoana Pandele <ioanap@chromium.org>
    Reviewed-by: default avatarYusuf Ozuysal <yusufo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#833637}
    8442f938
tab_switcher_toolbar.xml 4.01 KB