diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-05-07 14:21:38 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2015-05-07 16:30:52 -0700 |
commit | 49b043f37d7231b1544cb72e1bfb616e5a00688d (patch) | |
tree | b08f8d748f099c46346e0e5e997d217eea8c88ca /tests/VoiceInteraction/src/com | |
parent | cfd6e9dfd063cba795497f251aa6f7fe2554f10b (diff) | |
download | frameworks_base-49b043f37d7231b1544cb72e1bfb616e5a00688d.zip frameworks_base-49b043f37d7231b1544cb72e1bfb616e5a00688d.tar.gz frameworks_base-49b043f37d7231b1544cb72e1bfb616e5a00688d.tar.bz2 |
Fix issue #20655182: API Review: ViewAssistStructure
Fix the various view assist related APIs.
Also remove the blockAssist view attribute, and instead use
the window's FLAG_SECURE to drive blocking of the entire
hierarchy (which is semantically correct, and will protect
existing apps that have already indicated they need it).
Change-Id: I6beebc86b202809cba0a356cae9607d8d0fb5e78
Diffstat (limited to 'tests/VoiceInteraction/src/com')
-rw-r--r-- | tests/VoiceInteraction/src/com/android/test/voiceinteraction/AsyncStructure.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/AsyncStructure.java b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/AsyncStructure.java index 73e04e5..ae8e9e4 100644 --- a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/AsyncStructure.java +++ b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/AsyncStructure.java @@ -20,7 +20,7 @@ import android.annotation.Nullable; import android.content.Context; import android.util.AttributeSet; import android.view.View; -import android.view.ViewAssistStructure; +import android.view.ViewStructure; import android.widget.TextView; /** @@ -32,9 +32,9 @@ public class AsyncStructure extends TextView { } @Override - public void onProvideVirtualAssistStructure(ViewAssistStructure structure) { + public void onProvideVirtualStructure(ViewStructure structure) { structure.setChildCount(1); - final ViewAssistStructure child = structure.asyncNewChild(0); + final ViewStructure child = structure.asyncNewChild(0); final int width = getWidth(); final int height = getHeight(); (new Thread() { |