Merge "Add haptic feedback when All Apps button is pressed" into ics-mr0
This commit is contained in:
committed by
Android (Google) Code Review
commit
24a667c556
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user