mirror of
https://github.com/KokaKiwi/BarInsta
synced 2026-03-14 08:21:35 +00:00
Remove 'Disable animation' from Posts layout preferences as it is not used
This commit is contained in:
parent
a41d2a2f73
commit
55e9b17563
2 changed files with 13 additions and 45 deletions
|
|
@ -80,7 +80,6 @@ public class PostsLayoutPreferencesDialogFragment extends DialogFragment {
|
|||
initAvatarsToggle();
|
||||
initCornersToggle();
|
||||
initGapToggle();
|
||||
initAnimationDisableToggle();
|
||||
}
|
||||
|
||||
private void initLayoutToggle() {
|
||||
|
|
@ -170,11 +169,6 @@ public class PostsLayoutPreferencesDialogFragment extends DialogFragment {
|
|||
binding.showGapToggle.setOnCheckedChangeListener((buttonView, isChecked) -> preferencesBuilder.setHasGap(isChecked));
|
||||
}
|
||||
|
||||
private void initAnimationDisableToggle() {
|
||||
binding.disableAnimationToggle.setChecked(preferencesBuilder.isAnimationDisabled());
|
||||
binding.disableAnimationToggle.setOnCheckedChangeListener((buttonView, isChecked) -> preferencesBuilder.setAnimationDisabled(isChecked));
|
||||
}
|
||||
|
||||
private int getSelectedLayoutId() {
|
||||
switch (preferencesBuilder.getType()) {
|
||||
case STAGGERED_GRID:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue