am f426126a
: Merge "Fix issue #22860466: viapi security bug - rubber stamping in nested VIs" into mnc-dev
* commit 'f426126a76745451893b8b9e131dea61e6fb9e63': Fix issue #22860466: viapi security bug - rubber stamping in nested VIs
This commit is contained in:
@@ -41,7 +41,7 @@ abstract public class VoiceSettingsActivity extends Activity {
|
|||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
if (isVoiceInteraction() || savedInstanceState == null) {
|
if (isVoiceInteractionRoot()) {
|
||||||
// Only permit if this is a voice interaction.
|
// Only permit if this is a voice interaction.
|
||||||
if (onVoiceSettingInteraction(getIntent())) {
|
if (onVoiceSettingInteraction(getIntent())) {
|
||||||
// If it's complete, finish.
|
// If it's complete, finish.
|
||||||
@@ -60,7 +60,7 @@ abstract public class VoiceSettingsActivity extends Activity {
|
|||||||
abstract protected boolean onVoiceSettingInteraction(Intent intent);
|
abstract protected boolean onVoiceSettingInteraction(Intent intent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Send a notification that the interaction was successful. If {@link prompt} is
|
* Send a notification that the interaction was successful. If {@param prompt} is
|
||||||
* not null, then it will be read to the user.
|
* not null, then it will be read to the user.
|
||||||
*/
|
*/
|
||||||
protected void notifySuccess(CharSequence prompt) {
|
protected void notifySuccess(CharSequence prompt) {
|
||||||
|
Reference in New Issue
Block a user