Better font size control

Change-Id: Idde7c08f655b0a11382c8af5a9a3d395ce655718
Show a preview of the selected font size immediately

Modified the font size preference dialog to show the user the selected
font size immediately. Also split the size description and percentage on
their own lines to show a preview of two different font sizes. In
addition, removed the gigantic title bar from the dialog.

Change-Id: Ifc1e930f9420bde0bb6fd61b1a395c3d36b4fb0b
Settings: Fix the memory leak in Settings

Fixed the memory leak in both InstalledAppDetails

Change-Id: I3520b3c1fe1bf98e3baec2ee989eb215164a7cf2
Signed-off-by: Zhijun Peng <pengzhj@marvell.com>
Fix memory leak in ManageApplication

ApplicationsAdapter new a Session member and make it has a reference to
it self. If we don't release it explicitly, the cross reference will
cause memory leak.

Change-Id: Iecce35ae1d56d98cee6347e84d3a3ff57f3b15a5
fix a potential memory leak by adding onDestroy in case settings is killed

Change-Id: Ie5f53969d583a898739caeec49b972c5e1cb69d9
Fix WifiManager melory leak, change context to getApplicationContext

Change-Id: Iba90045c4e31537defeec7a6f965d3b764065864
Signed-off-by: annieyu <annieyu@huaqin.com>
Settings: fix NPE

if the user resumes InputMethodAndLanguage settings and
the user dictonary preference was already removed before,
the user will run into a NPE.

check it to fix it.

Change-Id: I1eac844720768bb668e26f0a572c7876b7b0bcee
Check if the Activity is finishing before showDialog()

Check if the Activity is going through its finishing phase before
displaying the Dialog, because Showing dialog once the activity
is no longer in context will cause BadTokenException.

Change-Id: I58940e694f61cd79536abe2df60a0b745a7b806f
Merge branch 'jb-mr2' of https://github.com/TeamHorizon/android_packages_apps_Settings into jb-mr2
Fix notification access

Change-Id: I90db261f9a2c4b493f269d81a10dd970ed1fecde
Signed-off-by: iceandfire <arhamjamal@gmail.com>