I often got irritated with this message especially when nothing was covering the top part of the screen
To get rid of this notification, one needs to disable the prevent pocket dial feature as shown below
Step 1: Go to "Settings"
Step 2: Go to "Lock screen and Password"
Step 3: Disable "Pocket mode" option (last item on the list - pic below)
Comment if this helped you. :)