Messaging: Remove unnecessary toString() and String.valueOf() calls

Change-Id: I5d5624386ba72b9e7074a7da909f78baaee73f75
This commit is contained in:
Michael W
2024-12-26 14:55:12 +01:00
parent 21cb2b6289
commit e35d385149
18 changed files with 40 additions and 34 deletions
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2015 The Android Open Source Project
* Copyright (C) 2024 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -162,8 +163,7 @@ public class ClassZeroActivity extends Activity {
} else {
mHandler.sendEmptyMessageAtTime(ON_AUTO_SAVE, mTimerSet);
if (VERBOSE) {
Log.d(TAG, "onRestart time = " + Long.toString(mTimerSet) + " "
+ this.toString());
Log.d(TAG, "onRestart time = " + mTimerSet + " " + this);
}
}
}
@@ -173,8 +173,7 @@ public class ClassZeroActivity extends Activity {
super.onSaveInstanceState(outState);
outState.putLong(TIMER_FIRE, mTimerSet);
if (VERBOSE) {
Log.d(TAG, "onSaveInstanceState time = " + Long.toString(mTimerSet)
+ " " + this.toString());
Log.d(TAG, "onSaveInstanceState time = " + mTimerSet + " " + this);
}
}
@@ -183,8 +182,7 @@ public class ClassZeroActivity extends Activity {
super.onStop();
mHandler.removeMessages(ON_AUTO_SAVE);
if (VERBOSE) {
Log.d(TAG, "onStop time = " + Long.toString(mTimerSet)
+ " " + this.toString());
Log.d(TAG, "onStop time = " + mTimerSet + " " + this);
}
}
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2015 The Android Open Source Project
* Copyright (C) 2024 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -296,7 +297,7 @@ public class MessageDetailsDialog {
if (recipients != null) {
details.append('\n');
details.append("Thread recipients: ");
details.append(recipients.toString());
details.append(recipients);
if (mms != null) {
final String from = MmsUtils.getMmsSender(recipients, mms.getUri());