Fix bug #15431722 Uninstalling an app via settings leaves user on screen

...for the now uninstalled app

- add the missing call to finish()
- fix also a typo

Change-Id: I3d365db1fa1e6ba1efeddae022d8c2136af6380a
This commit is contained in:
Fabrice Di Meglio
2014-06-26 16:20:26 -07:00
parent 74ef69a7d1
commit 58146c2b2f

View File

@@ -794,7 +794,7 @@ public class SettingsActivity extends Activity
* preference panel is done. The launched panel must use
* {@link #finishPreferencePanel(Fragment, int, Intent)} when done.
* @param resultRequestCode If resultTo is non-null, this is the caller's
* request code to be received with the resut.
* request code to be received with the result.
*/
public void startPreferencePanel(String fragmentClass, Bundle args, int titleRes,
CharSequence titleText, Fragment resultTo, int resultRequestCode) {
@@ -822,6 +822,7 @@ public class SettingsActivity extends Activity
*/
public void finishPreferencePanel(Fragment caller, int resultCode, Intent resultData) {
setResult(resultCode, resultData);
finish();
}
/**