Skip to content

Instantly share code, notes, and snippets.

@petedoyle
Last active July 7, 2016 19:33
Show Gist options
  • Save petedoyle/e9b5ffe410216147e91d6e2a20d682e6 to your computer and use it in GitHub Desktop.
Save petedoyle/e9b5ffe410216147e91d6e2a20d682e6 to your computer and use it in GitHub Desktop.
Specific changes used for the build speed benchmarks

Change one line of code

For the code change tests, this is the line of code I added/removed between tests: DogMarkerOptions.java:

    public DogMarker getMarker() {
        marker.setDogId(dogId);
        marker.setPosition(position);
//        marker.setSnippet(snippet); // snippet is not overrideable in base class Marker
//        marker.setTitle(title); // title is not overrideable in base class Marker
        marker.setIcon(icon);
+        marker.setIcon(icon); // TODO remove   // enabled/disabled between tests
        return marker;
    }

Change one line of layout xml

For the layout xml tests, this is the line of xml I changed between tests:

    <ImageView
        android:id="@+id/maps_fragment_all_pets_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_marginBottom="165dp"
        android:layout_marginLeft="6dp"
-       android:src="@drawable/map_allpets"       // toggle between runs
+       android:src="@drawable/map_allcenter
        android:visibility="gone"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment