Merge "fix out of memory with continuous entry and exit InstalledAppDetail."

am: d298d474e6

* commit 'd298d474e620766b4308376525ef6a2730bbb299':
  fix out of memory with continuous entry and exit InstalledAppDetail.
This commit is contained in:
Jason Monk
2016-01-04 14:42:31 +00:00
committed by android-build-merger

View File

@@ -105,6 +105,12 @@ public abstract class AppInfoBase extends SettingsPreferenceFragment
super.onPause(); super.onPause();
} }
@Override
public void onDestroy() {
mSession.release();
super.onDestroy();
}
protected String retrieveAppEntry() { protected String retrieveAppEntry() {
final Bundle args = getArguments(); final Bundle args = getArguments();
mPackageName = (args != null) ? args.getString(ARG_PACKAGE_NAME) : null; mPackageName = (args != null) ? args.getString(ARG_PACKAGE_NAME) : null;