- Complete this TODO.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| boolean isSingleTap = Math.abs(mStartingY - y) < Etils.dpToPx(5) | |
| && Math.abs(mStartingX - x) < Etils.dpToPx(5); | |
| if (isSingleTap) { | |
| shouldClose = isOpen; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| boolean shouldClose; | |
| float translationY = mEventsSliderContainer.getTranslationY(); | |
| if (isOpen) { | |
| shouldClose = (translationY > mScrollViewHeight / 2) | |
| || (translationY > OPEN_CLOSE_THRESHOLD); | |
| } else { // already closed, when should it remain closed | |
| shouldClose = (translationY > mScrollViewHeight / 2) | |
| && (translationY > mScrollViewHeight - OPEN_CLOSE_THRESHOLD); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Paint redStrokePaint, blueStrokePaint; | |
| redStrokePaint = new Paint(Paint.ANTI_ALIAS_FLAG); | |
| redStrokePaint.setStyle(Paint.Style.STROKE); | |
| redStrokePaint.setStrokeWidth(Etils.dpToPx(1)); | |
| redStrokePaint.setColor(context.getResources().getColor(R.color.flatui_red_1_transp_50)); | |
| blueStrokePaint = new Paint(Paint.ANTI_ALIAS_FLAG); | |
| blueStrokePaint.setStyle(Paint.Style.STROKE); | |
| blueStrokePaint.setStrokeWidth(Etils.dpToPx(1)); | |
| blueStrokePaint.setColor(context.getResources().getColor(R.color.flatui_blue_1_transp_50)); | |
| Paint greenStrokePaint = new Paint(Paint.ANTI_ALIAS_FLAG); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 04-06 19:21:12.782 E/RunLoop: Uncaught exception in Firebase runloop (2.5.0). Please report to [email protected] | |
| java.lang.NullPointerException: Attempt to invoke virtual method 'void com.firebase.client.core.SnapshotHolder.update(com.firebase.client.core.Path, com.firebase.client.snapshot.Node)' on a null object reference | |
| at com.firebase.client.core.Repo.updateInfo(Repo.java:497) | |
| at com.firebase.client.core.Repo.onServerInfoUpdate(Repo.java:456) | |
| at com.firebase.client.core.PersistentConnection.handleTimestamp(PersistentConnection.java:811) | |
| at com.firebase.client.core.PersistentConnection.onReady(PersistentConnection.java:309) | |
| at com.firebase.client.realtime.Connection.onConnectionReady(Connection.java:197) | |
| at com.firebase.client.realtime.Connection.onHandshake(Connection.java |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| drawingPath.moveTo(startHalfHourPointInner[0], startHalfHourPointInner[1]); | |
| drawingPath.lineTo(startHalfHourPoint[0], startHalfHourPoint[1]); | |
| drawingPath.arcTo(clockFaceRect, startAngle, sweepAngle); | |
| drawingPath.lineTo(endHalfHourPointInner[0], endHalfHourPointInner[1]); | |
| // drawingPath.lineTo(startHalfHourPointInner[0], startHalfHourPointInner[1]); | |
| drawingPath.addArc(constrainedCircleRect, startAngle, sweepAngle); | |
| drawingPath.moveTo(startHalfHourPointInner[0], startHalfHourPointInner[1]); | |
| drawingPath.lineTo(startHalfHourPoint[0], startHalfHourPoint[1]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int[] colors = new int[]{ | |
| getResources().getColor(R.color.flatui_red_1), | |
| getResources().getColor(R.color.flatui_red_2), | |
| getResources().getColor(R.color.flatui_orange_1), | |
| getResources().getColor(R.color.flatui_orange_2), | |
| getResources().getColor(R.color.flatui_yellow_1), | |
| getResources().getColor(R.color.flatui_yellow_2), | |
| getResources().getColor(R.color.flatui_green_1), | |
| getResources().getColor(R.color.flatui_green_2), | |
| getResources().getColor(R.color.flatui_blue_1), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| float padding = Util.dpToPx(1); | |
| RectF touchPoint = new RectF(x, y, x + padding, y + padding); | |
| Path touchPointPath = new Path(); | |
| touchPointPath.addRect(touchPoint, Path.Direction.CW); | |
| for (int i = 0; i < mHourPaths.length; i++) { | |
| hourPath = mHourPaths[i]; | |
| touchPointPath.addCircle(x, y, padding, Path.Direction.CW); | |
| touchPointPath.close(); | |
| Path hourPathCopy = new Path(hourPath); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| import static org.junit.Assert.*; | |
| import static org.junit.Assume.*; | |
| import org.junit.Test; | |
| import org.junit.runner.RunWith; | |
| import org.junit.runners.Parameterized; | |
| import org.junit.runners.Parameterized.Parameters; | |
| import org.junit.experimental.theories.DataPoint; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import monitor | |
| monitor.start(interval=1.0) | |
| monitor.track(os.path.join(os.path.dirname(__file__), 'site.cf')) | |
| # ... | |
| # The rest of your wsgi.py file |