am af8c900a: Merge "Use flattenToShortString instead of toShortString on ComponentNames to be sent in RecognizerIntent.EXTRA_CALLING_PACKAGE. This never should have been using toShortString because that includes curly braces and is not correctly parsed by ComponentNam
Merge commit 'af8c900a18288ef4ddfa2cebfa0555b8a37f92a7' into froyo-plus-aosp * commit 'af8c900a18288ef4ddfa2cebfa0555b8a37f92a7': Use flattenToShortString instead of toShortString on ComponentNames to
This commit is contained in:
@@ -819,7 +819,7 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS
|
|||||||
Intent voiceIntent = new Intent(baseIntent);
|
Intent voiceIntent = new Intent(baseIntent);
|
||||||
ComponentName searchActivity = searchable.getSearchActivity();
|
ComponentName searchActivity = searchable.getSearchActivity();
|
||||||
voiceIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE,
|
voiceIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE,
|
||||||
searchActivity == null ? null : searchActivity.toShortString());
|
searchActivity == null ? null : searchActivity.flattenToShortString());
|
||||||
return voiceIntent;
|
return voiceIntent;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -878,7 +878,7 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS
|
|||||||
voiceIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, language);
|
voiceIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, language);
|
||||||
voiceIntent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, maxResults);
|
voiceIntent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, maxResults);
|
||||||
voiceIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE,
|
voiceIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE,
|
||||||
searchActivity == null ? null : searchActivity.toShortString());
|
searchActivity == null ? null : searchActivity.flattenToShortString());
|
||||||
|
|
||||||
// Add the values that configure forwarding the results
|
// Add the values that configure forwarding the results
|
||||||
voiceIntent.putExtra(RecognizerIntent.EXTRA_RESULTS_PENDINGINTENT, pending);
|
voiceIntent.putExtra(RecognizerIntent.EXTRA_RESULTS_PENDINGINTENT, pending);
|
||||||
|
|||||||
Reference in New Issue
Block a user