Skip to content

Commit

Permalink
Merge pull request square#477 from square/py/no_underscores
Browse files Browse the repository at this point in the history
Remove old references to "__" prefixed resources initiated by square#159
  • Loading branch information
pyricau committed Mar 30, 2016
2 parents 664bfc4 + 5cf8dc2 commit 67e0971
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ private static LeakDirectoryProvider leakDirectoryProvider(Context context) {

setContentView(R.layout.leak_canary_display_leak);

listView = (ListView) findViewById(R.id.__leak_canary_display_leak_list);
failureView = (TextView) findViewById(R.id.__leak_canary_display_leak_failure);
actionButton = (Button) findViewById(R.id.__leak_canary_action);
listView = (ListView) findViewById(R.id.leak_canary_display_leak_list);
failureView = (TextView) findViewById(R.id.leak_canary_display_leak_failure);
actionButton = (Button) findViewById(R.id.leak_canary_action);

updateUi();
}
Expand Down Expand Up @@ -385,8 +385,8 @@ class LeakListAdapter extends BaseAdapter {
convertView = LayoutInflater.from(DisplayLeakActivity.this)
.inflate(R.layout.leak_canary_leak_row, parent, false);
}
TextView titleView = (TextView) convertView.findViewById(R.id.__leak_canary_row_text);
TextView timeView = (TextView) convertView.findViewById(R.id.__leak_canary_row_time);
TextView titleView = (TextView) convertView.findViewById(R.id.leak_canary_row_text);
TextView timeView = (TextView) convertView.findViewById(R.id.leak_canary_row_time);
Leak leak = getItem(position);

String index = (leaks.size() - position) + ". ";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ final class DisplayLeakAdapter extends BaseAdapter {
convertView =
LayoutInflater.from(context).inflate(R.layout.leak_canary_ref_top_row, parent, false);
}
TextView textView = findById(convertView, R.id.__leak_canary_row_text);
TextView textView = findById(convertView, R.id.leak_canary_row_text);
textView.setText(context.getPackageName());
} else {
if (convertView == null) {
convertView =
LayoutInflater.from(context).inflate(R.layout.leak_canary_ref_row, parent, false);
}
TextView textView = findById(convertView, R.id.__leak_canary_row_text);
TextView textView = findById(convertView, R.id.leak_canary_row_text);

boolean isRoot = position == 1;
boolean isLeakingInstance = position == getCount() - 1;
Expand All @@ -70,7 +70,7 @@ final class DisplayLeakAdapter extends BaseAdapter {
}
textView.setText(Html.fromHtml(htmlString));

DisplayLeakConnectorView connector = findById(convertView, R.id.__leak_canary_row_connector);
DisplayLeakConnectorView connector = findById(convertView, R.id.leak_canary_row_connector);
if (isRoot) {
connector.setType(DisplayLeakConnectorView.Type.START);
} else {
Expand All @@ -80,7 +80,7 @@ final class DisplayLeakAdapter extends BaseAdapter {
connector.setType(DisplayLeakConnectorView.Type.NODE);
}
}
MoreDetailsView moreDetailsView = findById(convertView, R.id.__leak_canary_row_more);
MoreDetailsView moreDetailsView = findById(convertView, R.id.leak_canary_row_more);
moreDetailsView.setOpened(opened[position]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@
android:background="#3c3c3c"
>
<ListView
android:id="@+id/__leak_canary_display_leak_list"
android:id="@+id/leak_canary_display_leak_list"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:dividerHeight="0dp"
android:divider="@null"
/>
<TextView
android:id="@+id/__leak_canary_display_leak_failure"
android:id="@+id/leak_canary_display_leak_failure"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:textSize="12sp"
android:visibility="gone"
/>
<Button
android:id="@+id/__leak_canary_action"
android:id="@+id/leak_canary_action"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
>

<TextView
android:id="@+id/__leak_canary_row_text"
android:id="@+id/leak_canary_row_text"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
Expand All @@ -32,7 +32,7 @@
/>

<TextView
android:id="@+id/__leak_canary_row_time"
android:id="@+id/leak_canary_row_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@
>

<com.squareup.leakcanary.internal.DisplayLeakConnectorView
android:id="@+id/__leak_canary_row_connector"
android:id="@+id/leak_canary_row_connector"
android:layout_width="16dp"
android:layout_height="match_parent"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
/>

<TextView
android:id="@+id/__leak_canary_row_text"
android:id="@+id/leak_canary_row_text"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
/>

<com.squareup.leakcanary.internal.MoreDetailsView
android:id="@+id/__leak_canary_row_more"
android:id="@+id/leak_canary_row_more"
android:layout_width="12dp"
android:layout_height="12dp"
android:layout_gravity="center_vertical"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
-->
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/__leak_canary_row_text"
android:id="@+id/leak_canary_row_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
Expand Down

0 comments on commit 67e0971

Please sign in to comment.