use of com.android.dialer.smartdial.SmartDialNameMatcher in project android_packages_apps_Dialer by LineageOS.
the class SmartDialCursorLoader method configureQuery.
/**
* Configures the query string to be used to find SmartDial matches.
*
* @param query The query string user typed.
*/
public void configureQuery(String query) {
if (DEBUG) {
LogUtil.v(TAG, "Configure new query to be " + query);
}
mQuery = SmartDialNameMatcher.normalizeNumber(query, SmartDialPrefix.getMap());
/**
* Constructs a name matcher object for matching names.
*/
mNameMatcher = new SmartDialNameMatcher(mQuery, SmartDialPrefix.getMap());
mNameMatcher.setShouldMatchEmptyQuery(!mShowEmptyListForNullQuery);
}
Aggregations