provide haptic feedback on long press in AppManager

This commit is contained in:
Andreas Shimokawa 2016-06-20 17:50:19 +02:00
parent 1a9c40e790
commit 72dff2abd2
1 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.content.LocalBroadcastManager;
import android.support.v7.widget.LinearLayoutManager;
import android.view.HapticFeedbackConstants;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
@ -279,8 +280,10 @@ public abstract class AbstractAppManagerFragment extends Fragment {
}
}
);
view.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
popupMenu.show();
return false; // FIXME: whats that for?
return true;
}
public boolean onContextItemSelected(MenuItem item, GBDeviceApp selectedApp) {