commit | 210c960c570158fbcf3de334d785fcbefee744d3 | [log] [tgz] |
---|---|---|
author | chihhangchuang <chihhangchuang@google.com> | Tue Jun 02 12:38:14 2020 +0800 |
committer | chihhangchuang <chihhangchuang@google.com> | Tue Jun 02 13:02:22 2020 +0800 |
tree | 78593bc66b659c378203f8b10eea73246c5108f6 | |
parent | 6ce487fd2c4518a4364d156bdf94faa09f363fce [diff] [blame] |
Exit app after a wallpaper is applied Video for all apply button: https://drive.google.com/file/d/14hlFH42wULH2IEl96xD6ReOf-gvb05Bw/view?usp=sharing The daily rotatio button also exit app. Test: Manually Bug: 157951178 Change-Id: I171275555925038b28ca31f058b8a5958fb2534f
diff --git a/src/com/android/wallpaper/picker/individual/IndividualPickerFragment.java b/src/com/android/wallpaper/picker/individual/IndividualPickerFragment.java index ee84cdd..f8ee2fc 100755 --- a/src/com/android/wallpaper/picker/individual/IndividualPickerFragment.java +++ b/src/com/android/wallpaper/picker/individual/IndividualPickerFragment.java
@@ -820,12 +820,11 @@ new WallpaperPersister.SetWallpaperCallback() { @Override public void onSuccess(WallpaperInfo wallpaperInfo) { + mWallpaperPersister.onLiveWallpaperSet(); Toast.makeText(getActivity(), R.string.wallpaper_set_successfully_message, Toast.LENGTH_SHORT).show(); - mBottomActionBar.enableActions(); - refreshAppliedWallpaper(); - - mWallpaperPersister.onLiveWallpaperSet(); + getActivity().overridePendingTransition(R.anim.fade_in, R.anim.fade_out); + getActivity().finish(); } @Override