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
Settings: add development animation transition mode 0.75

Change-Id: Iaaeb3757ef9b3b97d66d929629e9035ab511f72a
Settings: correct 0.75 animation scale for other lanuages and add 0.25

and a small cleanup for warnings

Change-Id: I07256fadacd0405b5049252b6bc3da9850adc3d1
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