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
| 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
| 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
| 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
| 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
| dependencies { | |
| compile fileTree(dir: 'libs', include: ['*.jar']) | |
| testCompile 'junit:junit:4.12' | |
| compile 'com.android.support:appcompat-v7:23.1.1' | |
| compile 'com.android.support:design:23.1.1' | |
| compile 'com.jakewharton:butterknife:8.6.0' | |
| annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0' | |
| compile 'com.squareup.retrofit2:retrofit:2.3.0' |
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
| <color name="white">#FFFFFFFF</color> | |
| <color name="black">#FF000000</color> | |
| <color name="transparent">#00000000</color> | |
| <!-- flat ui colors--> | |
| <color name="flatui_lightgrey_1">#ecf0f1</color> | |
| <color name="flatui_lightgrey_2">#bdc3c7</color> | |
| <color name="flatui_grey_1">#95a5a6</color> | |
| <color name="flatui_grey_2">#7f8c8d</color> | |
| <color name="flatui_red_1">#e74c3c</color> |
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
| <resources> | |
| <!-- | |
| TODO: Before you run your application, you need a Google Maps API key. | |
| To get one, follow this link, follow the directions and press "Create" at the end: | |
| https://console.developers.google.com/flows/enableapi?apiid=maps_android_backend&keyType=CLIENT_SIDE_ANDROID&r=99:2F:C8:F5:F0:C4:DA:61:BC:95:69:B0:53:36:E1:5C:CD:65:D2:37%3Bcom.compscieddy.meetinthemiddle | |
| You can also add your credentials to an existing key, using this line: | |
| 99:2F:C8:F5:F0:C4:DA:61:BC:95:69:B0:53:36:E1:5C:CD:65:D2:37;com.compscieddy.meetinthemiddle |
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
| package com.compscieddy.meetinthemiddle.ui; | |
| import android.content.Context; | |
| import android.util.AttributeSet; | |
| import android.widget.FrameLayout; | |
| import com.compscieddy.eddie_utils.Lawg; | |
| /** | |
| * Created by elee on 6/8/16. |
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
| public static final int BASE_REQUEST_CODE = 100; | |
| public static final int CAMERA_PERMISSIONS_REQUEST = BASE_REQUEST_CODE + 1; | |
| public static final int RECORD_AUDIO_PERMISSIONS_REQUEST = BASE_REQUEST_CODE + 2; | |
| public static final int WRITE_EXTERNAL_STORAGE_PERMISSIONS_REQUEST = BASE_REQUEST_CODE + 3; | |
| private boolean hasPermission(String permissionName) { | |
| int permissionCheck = ContextCompat.checkSelfPermission(CameraActivity.this, permissionName); | |
| return (permissionCheck == PackageManager.PERMISSION_GRANTED); | |
| } |