LeanbackDemo: Search requests runtime permission

Bug: 23958590
Change-Id: I058b80050285b9912fefbcaca3f897f8a6b87b3d
diff --git a/samples/SupportLeanbackDemos/AndroidManifest.xml b/samples/SupportLeanbackDemos/AndroidManifest.xml
index 6db5aab..31e90ba 100644
--- a/samples/SupportLeanbackDemos/AndroidManifest.xml
+++ b/samples/SupportLeanbackDemos/AndroidManifest.xml
@@ -5,6 +5,7 @@
     android:versionName="1.0">
 
     <uses-sdk android:minSdkVersion="17" android:targetSdkVersion="23" />
+    <uses-permission android:name="android.permission.RECORD_AUDIO" />
 
     <application
         android:label="@string/app_name"
diff --git a/samples/SupportLeanbackDemos/src/com/example/android/leanback/SearchActivity.java b/samples/SupportLeanbackDemos/src/com/example/android/leanback/SearchActivity.java
index 0f7fc3f..374382b 100644
--- a/samples/SupportLeanbackDemos/src/com/example/android/leanback/SearchActivity.java
+++ b/samples/SupportLeanbackDemos/src/com/example/android/leanback/SearchActivity.java
@@ -26,7 +26,7 @@
     private static boolean DEBUG = true;
 
     /** If using internal speech recognizer, you must have RECORD_AUDIO permission */
-    private static boolean USE_INTERNAL_SPEECH_RECOGNIZER = false;
+    private static boolean USE_INTERNAL_SPEECH_RECOGNIZER = true;
     private static final int REQUEST_SPEECH = 1;
 
     private SearchFragment mFragment;
@@ -62,4 +62,5 @@
             mFragment.setSearchQuery(data, true);
         }
     }
+
 }
diff --git a/samples/SupportLeanbackDemos/src/com/example/android/leanback/SearchSupportActivity.java b/samples/SupportLeanbackDemos/src/com/example/android/leanback/SearchSupportActivity.java
index 9ecdafe..25e5cbf 100644
--- a/samples/SupportLeanbackDemos/src/com/example/android/leanback/SearchSupportActivity.java
+++ b/samples/SupportLeanbackDemos/src/com/example/android/leanback/SearchSupportActivity.java
@@ -28,7 +28,7 @@
     private static boolean DEBUG = true;
 
     /** If using internal speech recognizer, you must have RECORD_AUDIO permission */
-    private static boolean USE_INTERNAL_SPEECH_RECOGNIZER = false;
+    private static boolean USE_INTERNAL_SPEECH_RECOGNIZER = true;
     private static final int REQUEST_SPEECH = 1;
 
     private SearchSupportFragment mFragment;
@@ -64,4 +64,5 @@
             mFragment.setSearchQuery(data, true);
         }
     }
+
 }