MohammadAG/Xposed-Tinted-Status-Bar — pull request #30 by GermainZ (2014-04-20 16:21:25+00:00)
Title: React to SearchDialogs

A [search dialog] (http://developer.android.com/guide/topics/search/search-dialog.html#SearchDialog) is a (separate) Dialog that's shown on top of the ActionBar (and themed to look like one.) This is used by some apps, such as GitHub or TapaTalk.

We're hooking the onStart() and onStop() methods in [SearchDialog] (https://github.com/android/platform_frameworks_base/blob/master/core/java/android/app/SearchDialog.java) as those are the easiest to get. actionModeBackground is always the background - see [search_bar.xml] (https://github.com/android/platform_frameworks_base/blob/master/core/res/res/layout/search_bar.xml) which is [used here](https://github.com/android/platform_frameworks_base/blob/master/core/java/android/app/SearchDialog.java#L168).
Since we're using getTheme().obtainStyledAttributes(…) this should also work if actionModeBackground is themed by the app (using styles.xml) if I'm not mistaken.