Merge "Add haptic feedback when All Apps button is pressed" into ics-mr0

This commit is contained in:
Michael Jurka
2011-10-11 16:08:35 -07:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ public class Hotseat extends FrameLayout {
@Override
public void onClick(android.view.View v) {
if (mLauncher != null) {
mLauncher.showAllApps(true);
mLauncher.onClickAllAppsButton(v);
}
}
});
+3 -1
View File
@@ -1688,7 +1688,7 @@ public final class Launcher extends Activity
if (mState == State.APPS_CUSTOMIZE) {
showWorkspace(true);
} else {
showAllApps(true);
onClickAllAppsButton(v);
}
}
}
@@ -1731,6 +1731,8 @@ public final class Launcher extends Activity
* @param v The view that was clicked.
*/
public void onClickAllAppsButton(View v) {
// Provide the same haptic feedback that the system offers for virtual keys.
v.performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY);
showAllApps(true);
}