Changeset 31827 in osm for applications/editors/josm/plugins/mapillary
- Timestamp:
- 2015-12-15T14:16:06+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryPlugin.java
r31815 r31827 131 131 132 132 if (Main.pref.get("mapillary.access-token") == null) 133 MapillaryUser. isTokenValid = false;133 MapillaryUser.setTokenValid(false); 134 134 } 135 135 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/oauth/MapillaryUser.java
r31810 r31827 23 23 private static String imagesHash; 24 24 /** If the stored token is valid or not. */ 25 p ublicstatic boolean isTokenValid = true;25 private static boolean isTokenValid = true; 26 26 27 27 private MapillaryUser() { … … 82 82 * Resets the MapillaryUser to null values. 83 83 */ 84 public static void reset() {84 public static synchronized void reset() { 85 85 username = null; 86 86 imagesPolicy = null; … … 89 89 Main.pref.put("mapillary.access-token", null); 90 90 } 91 92 public static synchronized void setTokenValid(boolean value) { 93 isTokenValid = value; 94 } 91 95 } -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/oauth/OAuthPortListener.java
r31811 r31827 71 71 Main.info("Successful login with Mapillary, the access token is: " + accessToken); 72 72 // Saves the access token in preferences. 73 MapillaryUser. isTokenValid = true;73 MapillaryUser.setTokenValid(true); 74 74 if (Main.main != null) { 75 75 Main.pref.put("mapillary.access-token", accessToken);
Note:
See TracChangeset
for help on using the changeset viewer.