avoid read redundant string

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2021-04-06 10:43:53 +02:00
parent 1884a5331f
commit bd8edbc17f
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -2363,11 +2363,9 @@ public class CallController extends BaseController {
private String getDescriptionForCallType() {
String appName = getResources().getString(R.string.nc_app_name);
if (isVoiceOnlyCall){
return String.format(getResources().getString(R.string.nc_call_voice),
getResources().getString(R.string.nc_app_name));
return String.format(getResources().getString(R.string.nc_call_voice), appName);
} else {
return String.format(getResources().getString(R.string.nc_call_video),
getResources().getString(R.string.nc_app_name));
return String.format(getResources().getString(R.string.nc_call_video), appName);
}
}