+ // Reload the note's tag names. This is called when a tag's name changes by\r
+ // the user. It updates all notes with that tag to the new tag name.\r
+ public void reloadNoteTagNames(String tagGuid, String newName) {\r
+ \r
+ // Set the master index\r
+ for (int i=0; i<getMasterNoteIndex().size(); i++) {\r
+ for (int j=0; j<getMasterNoteIndex().get(i).getTagGuids().size(); j++) {\r
+ if (getMasterNoteIndex().get(i).getTagGuids().get(j).equals(tagGuid)) {\r
+ getMasterNoteIndex().get(i).getTagNames().set(j, newName);\r
+ }\r
+ }\r
+ }\r
+ \r
+ // Set the current index\r
+ for (int i=0; i<getNoteIndex().size(); i++) {\r
+ for (int j=0; j<getNoteIndex().get(i).getTagGuids().size(); j++) {\r
+ if (getNoteIndex().get(i).getTagGuids().get(j).equals(tagGuid)) {\r
+ getNoteIndex().get(i).getTagNames().set(j, newName);\r
+ }\r
+ }\r
+ }\r
+ }\r
+ \r