Frameworks: take notification size into account + cleanup

take notification size as well into account for qs swipe down
feature due it can take effect if the user dismiss a non permanent
one during a permanent one is present. CM bug

as well cleanup redundant code

Change-Id: I56a88161b93f966e49190d73a3a77a1dbd373e56