diff --git a/leakcanary-android/src/main/java/com/squareup/leakcanary/internal/DisplayLeakActivity.java b/leakcanary-android/src/main/java/com/squareup/leakcanary/internal/DisplayLeakActivity.java index e746b04c54..4ab1baf235 100644 --- a/leakcanary-android/src/main/java/com/squareup/leakcanary/internal/DisplayLeakActivity.java +++ b/leakcanary-android/src/main/java/com/squareup/leakcanary/internal/DisplayLeakActivity.java @@ -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(); } @@ -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) + ". "; diff --git a/leakcanary-android/src/main/java/com/squareup/leakcanary/internal/DisplayLeakAdapter.java b/leakcanary-android/src/main/java/com/squareup/leakcanary/internal/DisplayLeakAdapter.java index 929e6badeb..fd23cfbde3 100644 --- a/leakcanary-android/src/main/java/com/squareup/leakcanary/internal/DisplayLeakAdapter.java +++ b/leakcanary-android/src/main/java/com/squareup/leakcanary/internal/DisplayLeakAdapter.java @@ -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; @@ -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 { @@ -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]); } diff --git a/leakcanary-android/src/main/res/layout/leak_canary_display_leak.xml b/leakcanary-android/src/main/res/layout/leak_canary_display_leak.xml index d9d312e08e..8e56c3d121 100644 --- a/leakcanary-android/src/main/res/layout/leak_canary_display_leak.xml +++ b/leakcanary-android/src/main/res/layout/leak_canary_display_leak.xml @@ -21,7 +21,7 @@ android:background="#3c3c3c" >