Issue
As I know, From M Os, with tablet models have width larger than 600dp. Notification Panel will be displayed at where we touch on
Example
- When touch on at center of status bar (drag down Notification Panel at center of status bar) -> Notifcation Panel will be displayed at center of screen
- When touch on at right of status bar (drag down Notification Panel at right of status bar) -> Notifcation Panel will be displayed at right of screen
- When touch on at left of status bar (drag down Notification Panel at left of status bar) -> Notifcation Panel will be displayed at left of screen
I searched code at Statusbar.java, NotificationPanel.java, but cannot find out code that google handle it Have anyone who know where google handle it?
Solution
It's under NotificationPanelView#onTouchEvent():
if (event.getActionMasked() == MotionEvent.ACTION_DOWN && isFullyCollapsed()) {
MetricsLogger.count(mContext, COUNTER_PANEL_OPEN, 1);
updateVerticalPanelPosition(event.getX()); //this is the function that carries out the logic
handled = true;
}
Answered By - TheWanderer
Answer Checked By - Mary Flores (JavaFixing Volunteer)