Call to equals() comparing different types

I have found this bug with the FindBugs tool

Change-Id: I7f157063b0a549cb4344c048ddb612a14a915a25
Signed-off-by: László Dávid <laszlo.david@gmail.com>
This commit is contained in:
László Dávid
2012-10-24 23:31:47 +02:00
parent 78f5c4d537
commit 0b8bf4ea86

View File

@@ -1171,8 +1171,8 @@ public class DataUsageSummary extends Fragment {
final String rangePhrase = formatDateRange(context, start, end);
final int summaryRes;
if (TAB_MOBILE.equals(mCurrentTab) || TAB_3G.equals(mCurrentApp)
|| TAB_4G.equals(mCurrentApp)) {
if (TAB_MOBILE.equals(mCurrentTab) || TAB_3G.equals(mCurrentTab)
|| TAB_4G.equals(mCurrentTab)) {
summaryRes = R.string.data_usage_total_during_range_mobile;
} else {
summaryRes = R.string.data_usage_total_during_range;