OSDN Git Service

Remove "fade in" animation for search + voice search.
authorNarayan Kamath <narayan@google.com>
Fri, 21 Sep 2012 17:28:48 +0000 (18:28 +0100)
committerNarayan Kamath <narayan@google.com>
Fri, 21 Sep 2012 17:28:48 +0000 (18:28 +0100)
This applies when the app is launched by tapping the
search box or the voice search icon.

bug:7193408
Change-Id: I29f41faa20c3e7ad00032f749c99d9b69402c422

src/com/android/launcher2/Launcher.java

index ab361f1..896c192 100644 (file)
@@ -1648,7 +1648,6 @@ public final class Launcher extends Activity
     public boolean onSearchRequested() {
         startSearch(null, false, null, true);
         // Use a custom animation for launching search
-        overridePendingTransition(R.anim.fade_in_fast, R.anim.fade_out_fast);
         return true;
     }
 
@@ -1961,7 +1960,6 @@ public final class Launcher extends Activity
                 intent.setPackage(activityName.getPackageName());
             }
             startActivity(null, intent, "onClickVoiceButton");
-            overridePendingTransition(R.anim.fade_in_fast, R.anim.fade_out_fast);
         } catch (ActivityNotFoundException e) {
             Intent intent = new Intent(RecognizerIntent.ACTION_WEB_SEARCH);
             intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);