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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user