OSDN Git Service

DO NOT MERGE. Truncate and ellipsize app name if too long for dialog.
authorMichael Wright <michaelwr@google.com>
Mon, 24 Aug 2015 23:00:05 +0000 (00:00 +0100)
committerMichael Wright <michaelwr@google.com>
Fri, 28 Aug 2015 18:05:58 +0000 (19:05 +0100)
commit78056370fa69d10fad80a1ef1023c58dda9ad35d
treec912ff6a91579cd1aaed5d06c92c4b29d9122b1f
parenta1be8b43e49d7b3555af6f284e4bb416ae6d477f
DO NOT MERGE. Truncate and ellipsize app name if too long for dialog.

If the given app name is too long for the permissions dialog, then
it can push the warning that the application will be able to record
the screen below the fold, letting the app basically set its own
dialog message in a way that a user would be difficult to detect as
fraudulant.

Bug: 23345192
Change-Id: If5881ca75d5c155ef5174351d245dbc3abdaa584
packages/SystemUI/src/com/android/systemui/media/MediaProjectionPermissionActivity.java