0
我希望能夠修改該代碼,使其成爲雙擊而不是單擊。原因是我的手機屏幕上的空間按鈕太靠近了。當按下空格鍵或使用應用程序時,我總是意外地敲打它。有誰知道我在哪裏可以找到android的ICS主頁按鈕的代碼?
我希望能夠修改該代碼,使其成爲雙擊而不是單擊。原因是我的手機屏幕上的空間按鈕太靠近了。當按下空格鍵或使用應用程序時,我總是意外地敲打它。有誰知道我在哪裏可以找到android的ICS主頁按鈕的代碼?
這是在PhoneWindowManager。這些線可以是你正在尋找:
1821 // First we always handle the home key here, so applications
1822 // can never break it, although if keyguard is on, we do let
1823 // it handle it, because that gives us the correct 5 second
1824 // timeout.
1825 if (keyCode == KeyEvent.KEYCODE_HOME) {
1826
1827 // If we have released the home key, and didn't do anything else
1828 // while it was pressed, then it is time to go home!
1829 if (!down) {
1830 final boolean homeWasLongPressed = mHomeLongPressed;
1831 mHomePressed = false;
1832 mHomeLongPressed = false;
1833 if (!homeWasLongPressed) {
1834 if (mLongPressOnHomeBehavior == LONG_PRESS_HOME_RECENT_SYSTEM_UI) {
1835 try {
或者https://android.googlesource.com/platform/frameworks/base/+/master/policy/src/com/android/internal/policy/impl /PhoneWindowManager.java –
.......謝謝.. –