SOMEONE PLEASE FIX THIS

Credit @drcmda
https://github.com/ParanoidAndroid/android_frameworks_base/commit/da3121c279e637714117c116b7096647d2b19aad