Skip to content

Commit

Permalink
code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
elevenetc committed Sep 9, 2015
1 parent 10c429f commit 544bab4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import su.levenetc.android.draggableview.DragController;
import su.levenetc.android.draggableview.DraggableView;
import su.levenetc.android.draggableview.RotateView;
import su.levenetc.android.draggableview.SkewView;
import su.levenetc.android.draggableview.utils.Utils;

Expand Down Expand Up @@ -78,9 +77,8 @@ public SampleGridContainer(Context context, AttributeSet attrs) {

@Override public ViewGroup getContainerForDraggableView() {
Activity context = (Activity) getContext();
ViewGroup result = (ViewGroup) context.getWindow().getDecorView().getRootView();
ViewGroup childAt = (ViewGroup) result.getChildAt(0);
return (ViewGroup) childAt.getChildAt(1);
ViewGroup rootView = (ViewGroup) context.getWindow().getDecorView().getRootView();
return (ViewGroup) ((ViewGroup) rootView.getChildAt(0)).getChildAt(1);
}

@Override public void onDragStart() {
Expand Down

0 comments on commit 544bab4

Please sign in to comment.