diff options
author | LuK1337 <priv.luk@gmail.com> | 2019-07-10 10:36:49 +0200 |
---|---|---|
committer | LuK1337 <priv.luk@gmail.com> | 2019-07-10 10:36:49 +0200 |
commit | bf9997860ef057270a6499c794f49f7eca742b13 (patch) | |
tree | 53e7361d77f8b86f0e999bd58912838aae44a51e | |
parent | fac70594bed3d3bec56b10f0585acd435dac78bd (diff) | |
download | android_hardware_samsung-bf9997860ef057270a6499c794f49f7eca742b13.tar.gz android_hardware_samsung-bf9997860ef057270a6499c794f49f7eca742b13.tar.bz2 android_hardware_samsung-bf9997860ef057270a6499c794f49f7eca742b13.zip |
hidl: livedisplay: Fix reading mode string comparison
* Since we are trimming the string it will
never match one with trailing space at the end.
Change-Id: Iea76092112555ed8b858560f07ef8e88f0ff593b
-rw-r--r-- | lineagehw/hidl/livedisplay/ReadingEnhancement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lineagehw/hidl/livedisplay/ReadingEnhancement.cpp b/lineagehw/hidl/livedisplay/ReadingEnhancement.cpp index 9de47cd..4c2c31b 100644 --- a/lineagehw/hidl/livedisplay/ReadingEnhancement.cpp +++ b/lineagehw/hidl/livedisplay/ReadingEnhancement.cpp @@ -47,7 +47,7 @@ Return<bool> ReadingEnhancement::isEnabled() { contents = Trim(contents); } - return !contents.compare("Current accessibility : DSI0 : GRAYSCALE ") || !contents.compare("4"); + return !contents.compare("Current accessibility : DSI0 : GRAYSCALE") || !contents.compare("4"); } Return<bool> ReadingEnhancement::setEnabled(bool enabled) { |