commit | ea1a6b931eb93c1be4a73d7e7f6b300b4b853046 | [log] [tgz] |
---|---|---|
author | Santiago Etchebehere <santie@google.com> | Thu Mar 21 11:11:14 2019 -0700 |
committer | Santiago Etchebehere <santie@google.com> | Thu Mar 21 11:11:14 2019 -0700 |
tree | cd44501c612737704262d40e343c0f581758581d | |
parent | 5ef2a14d16cd861c167d3f7f03332e59030de96d [diff] |
Fix crash when finishing IndividualPickerActivity Calling finish() doesn't leave the current method, so as we didn't return immediately, we were continuing with a null mCategory Bug: 129006832 Change-Id: Ib26acfee7cb6657eaf0823ac594b017c744b7341
diff --git a/src/com/android/wallpaper/picker/individual/IndividualPickerActivity.java b/src/com/android/wallpaper/picker/individual/IndividualPickerActivity.java index 24d81ea..2d77608 100755 --- a/src/com/android/wallpaper/picker/individual/IndividualPickerActivity.java +++ b/src/com/android/wallpaper/picker/individual/IndividualPickerActivity.java
@@ -95,6 +95,7 @@ // saved state, or with a collection id that doesn't exist anymore. // In those cases, we cannot continue, so let's just go back. finish(); + return; } setTitle(mCategory.getTitle());