mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-14 18:57:30 +00:00
Remove custom dialog animation for PostsLayoutPreferencesDialogFragment
This commit is contained in:
parent
b4d3709da5
commit
e3bf083b52
@ -5,7 +5,6 @@ import android.content.Context;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.Window;
|
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
@ -57,16 +56,6 @@ public class PostsLayoutPreferencesDialogFragment extends DialogFragment {
|
|||||||
.create();
|
.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() {
|
private void init() {
|
||||||
initLayoutToggle();
|
initLayoutToggle();
|
||||||
if (preferencesBuilder.getType() != PostsLayoutPreferences.PostsLayoutType.LINEAR) {
|
if (preferencesBuilder.getType() != PostsLayoutPreferences.PostsLayoutType.LINEAR) {
|
||||||
|
Loading…
Reference in New Issue
Block a user