From e3bf083b52bcc05b3120f25820ad78e4d7eb9afa Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Tue, 13 Jul 2021 21:25:34 +0900 Subject: [PATCH] Remove custom dialog animation for PostsLayoutPreferencesDialogFragment --- .../dialogs/PostsLayoutPreferencesDialogFragment.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/dialogs/PostsLayoutPreferencesDialogFragment.java b/app/src/main/java/awais/instagrabber/dialogs/PostsLayoutPreferencesDialogFragment.java index 9e35ae54..2730650b 100644 --- a/app/src/main/java/awais/instagrabber/dialogs/PostsLayoutPreferencesDialogFragment.java +++ b/app/src/main/java/awais/instagrabber/dialogs/PostsLayoutPreferencesDialogFragment.java @@ -5,7 +5,6 @@ import android.content.Context; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; -import android.view.Window; import androidx.annotation.NonNull; import androidx.annotation.Nullable; @@ -57,16 +56,6 @@ public class PostsLayoutPreferencesDialogFragment extends DialogFragment { .create(); } - @Override - public void onStart() { - super.onStart(); - final Dialog dialog = getDialog(); - if (dialog == null) return; - final Window window = dialog.getWindow(); - if (window == null) return; - window.setWindowAnimations(R.style.dialog_window_animation); - } - private void init() { initLayoutToggle(); if (preferencesBuilder.getType() != PostsLayoutPreferences.PostsLayoutType.LINEAR) {