Handles daily rotation button to be unselected when dialog is dismissed
Video: https://drive.google.com/file/d/1cK9o9Hdn2Qkt8u40V4y7AHrakQfU_VL2/view?usp=sharing
Test: Manually
Fixes: 158558935
Change-Id: Ibff86aa1fd18d5301273eca6171c9d29ecd0d806
diff --git a/src/com/android/wallpaper/picker/individual/IndividualPickerFragment.java b/src/com/android/wallpaper/picker/individual/IndividualPickerFragment.java
index 98d5f2a..cbc01f3 100755
--- a/src/com/android/wallpaper/picker/individual/IndividualPickerFragment.java
+++ b/src/com/android/wallpaper/picker/individual/IndividualPickerFragment.java
@@ -25,6 +25,7 @@
import android.app.ProgressDialog;
import android.app.WallpaperManager;
import android.content.Context;
+import android.content.DialogInterface;
import android.content.Intent;
import android.content.res.Configuration;
import android.content.res.Resources.NotFoundException;
@@ -106,7 +107,8 @@
public class IndividualPickerFragment extends BottomActionBarFragment
implements RotationStarter, StartRotationErrorDialogFragment.Listener,
CurrentWallpaperBottomSheetPresenter.RefreshListener,
- SetWallpaperErrorDialogFragment.Listener, SetWallpaperDialogFragment.Listener {
+ SetWallpaperErrorDialogFragment.Listener, SetWallpaperDialogFragment.Listener,
+ StartRotationDialogFragment.Listener {
public static final boolean NEW_SCROLL_INTERACTION = true;
@@ -619,6 +621,11 @@
}
@Override
+ public void onStartRotationDialogDismiss(@NonNull DialogInterface dialog) {
+ mBottomActionBar.setActionSelected(ROTATION, false /* selected */);
+ }
+
+ @Override
public void retryStartRotation(@NetworkPreference int networkPreference) {
startRotation(networkPreference);
}