[Android] Adv options: fix indentation
Geoffrey Métais
git at videolan.org
Fri Oct 27 11:38:29 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Oct 27 10:19:50 2017 +0200| [7364031dd894e59754d82e73049c048e5760983e] | committer: Geoffrey Métais
Adv options: fix indentation
> https://code.videolan.org/videolan/vlc-android/commit/7364031dd894e59754d82e73049c048e5760983e
---
.../videolan/vlc/gui/dialogs/AdvOptionsDialog.java | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
index 5c38541f3..92c5ede6f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
@@ -580,16 +580,16 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
}
private void setDialogDimensions(int offset) {
- final Dialog dialog = getDialog();
- if (dialog == null)
- return;
- final int dialogWidth = getResources().getDimensionPixelSize(R.dimen.option_width) * SPAN_COUNT + mRecyclerView.getPaddingLeft()+ mRecyclerView.getRight();
- final int count = mAdapter.getItemCount()-offset;
- final int rows = offset + (count + SPAN_COUNT-1) / SPAN_COUNT;
- final int dialogHeight = getResources().getDimensionPixelSize(R.dimen.option_height) * rows + mRecyclerView.getPaddingBottom()+ mRecyclerView.getPaddingTop();
-
- dialog.getWindow().setLayout(dialogWidth, dialogHeight);
-}
+ final Dialog dialog = getDialog();
+ if (dialog == null)
+ return;
+ final int dialogWidth = getResources().getDimensionPixelSize(R.dimen.option_width) * SPAN_COUNT + mRecyclerView.getPaddingLeft()+ mRecyclerView.getRight();
+ final int count = mAdapter.getItemCount()-offset;
+ final int rows = offset + (count + SPAN_COUNT-1) / SPAN_COUNT;
+ final int dialogHeight = getResources().getDimensionPixelSize(R.dimen.option_height) * rows + mRecyclerView.getPaddingBottom()+ mRecyclerView.getPaddingTop();
+
+ dialog.getWindow().setLayout(dialogWidth, dialogHeight);
+ }
private class AdvOptionsAdapter extends RecyclerView.Adapter<AdvOptionsAdapter.ViewHolder> {
More information about the Android
mailing list