AndyScherzinger преди 6 години
родител
ревизия
a63450f013
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/main/java/com/owncloud/android/ui/adapter/NotificationListAdapter.java

+ 2 - 1
src/main/java/com/owncloud/android/ui/adapter/NotificationListAdapter.java

@@ -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) {