fix codacy issue

This commit is contained in:
AndyScherzinger 2018-07-19 13:58:34 +02:00
parent f77caf8926
commit a63450f013
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -160,9 +160,10 @@ public class NotificationListAdapter extends RecyclerView.Adapter<NotificationLi
int openingBrace = text.indexOf('{');
int closingBrace;
String replaceablePart;
while (openingBrace != -1) {
closingBrace = text.indexOf('}', openingBrace) + 1;
String replaceablePart = text.substring(openingBrace + 1, closingBrace - 1);
replaceablePart = text.substring(openingBrace + 1, closingBrace - 1);
RichObject richObject = notification.subjectRichParameters.get(replaceablePart);
if (richObject != null) {