OSDN Git Service

Show search results when query string contains trailing space
authorlong.x.qiao <long.x.qiao@sonymobile.com>
Tue, 29 Nov 2016 05:50:51 +0000 (13:50 +0800)
committerYoshinori Hirano <yoshinori.hirano@sonymobile.com>
Wed, 1 Mar 2017 12:00:57 +0000 (21:00 +0900)
commit9973b014896dffab79c8cffe48c5f8acee5d497e
tree39071422dbdfcdd05fc8f2b004d1ad5e5ed04009
parent05c88316ec2590465cf9337dd34cf9763008bd37
Show search results when query string contains trailing space

The query expression used to search for a term prefix is the prefix
itself with a '*' character appended to it. However, if query string
contains trailing space, the query expresssion (e.g. "screen *") doesn't
work. So to fix this issue, the unnecessary trailing space should be
removed.

Bug: 35231587
Test: manual - go to search in Settings and enter "screen "

Change-Id: Ifa5d96f5d38ad5454272f140da440b8ff55d5614
src/com/android/settings/search/Index.java