From cea2636376579380c3ac30e86758728d23d56b36 Mon Sep 17 00:00:00 2001 From: Simon Marquis Date: Sat, 29 Aug 2015 13:05:46 +0200 Subject: [PATCH] Remove old references to "__" prefixed resources initiated by #159 --- .../leakcanary/internal/DisplayLeakActivity.java | 10 +++++----- .../leakcanary/internal/DisplayLeakAdapter.java | 8 ++++---- src/main/res/layout/leak_canary_display_leak.xml | 6 +++--- src/main/res/layout/leak_canary_leak_row.xml | 4 ++-- src/main/res/layout/leak_canary_ref_row.xml | 6 +++--- src/main/res/layout/leak_canary_ref_top_row.xml | 2 +- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/main/java/com/squareup/leakcanary/internal/DisplayLeakActivity.java b/src/main/java/com/squareup/leakcanary/internal/DisplayLeakActivity.java index 2be0290d36..01abf264d5 100644 --- a/src/main/java/com/squareup/leakcanary/internal/DisplayLeakActivity.java +++ b/src/main/java/com/squareup/leakcanary/internal/DisplayLeakActivity.java @@ -122,9 +122,9 @@ static File getLeakDirectory(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(); } @@ -380,8 +380,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/src/main/java/com/squareup/leakcanary/internal/DisplayLeakAdapter.java b/src/main/java/com/squareup/leakcanary/internal/DisplayLeakAdapter.java index 929e6badeb..fd23cfbde3 100644 --- a/src/main/java/com/squareup/leakcanary/internal/DisplayLeakAdapter.java +++ b/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/src/main/res/layout/leak_canary_display_leak.xml b/src/main/res/layout/leak_canary_display_leak.xml index d9d312e08e..8e56c3d121 100644 --- a/src/main/res/layout/leak_canary_display_leak.xml +++ b/src/main/res/layout/leak_canary_display_leak.xml @@ -21,7 +21,7 @@ android:background="#3c3c3c" >