mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 18:37:17 +00:00 
			
		
		
		
	Fix comparison of share type in the GetShareesTest
This commit is contained in:
		
							parent
							
								
									b13e584ac3
								
							
						
					
					
						commit
						1e1d424ffb
					
				| @ -134,7 +134,7 @@ public class GetShareesTest extends RemoteTest { | |||||||
| 				resultItem = (JSONObject) result.getData().get(i); | 				resultItem = (JSONObject) result.getData().get(i); | ||||||
| 	            value = resultItem.getJSONObject(GetRemoteShareesOperation.NODE_VALUE); | 	            value = resultItem.getJSONObject(GetRemoteShareesOperation.NODE_VALUE); | ||||||
| 	            type = value.getInt(GetRemoteShareesOperation.PROPERTY_SHARE_TYPE); | 	            type = value.getInt(GetRemoteShareesOperation.PROPERTY_SHARE_TYPE); | ||||||
| 				if (type == ShareType.GROUP) { | 				if (type == ShareType.GROUP.getValue()) { | ||||||
| 					groupCount++; | 					groupCount++; | ||||||
| 				} else { | 				} else { | ||||||
| 					userCount++; | 					userCount++; | ||||||
| @ -158,7 +158,7 @@ public class GetShareesTest extends RemoteTest { | |||||||
| 				resultItem = (JSONObject) result.getData().get(i); | 				resultItem = (JSONObject) result.getData().get(i); | ||||||
| 	            value = resultItem.getJSONObject(GetRemoteShareesOperation.NODE_VALUE); | 	            value = resultItem.getJSONObject(GetRemoteShareesOperation.NODE_VALUE); | ||||||
| 	            type = value.getInt(GetRemoteShareesOperation.PROPERTY_SHARE_TYPE); | 	            type = value.getInt(GetRemoteShareesOperation.PROPERTY_SHARE_TYPE); | ||||||
| 				if (type == ShareType.GROUP) { | 				if (type == ShareType.GROUP.getValue()) { | ||||||
| 					groupCount++; | 					groupCount++; | ||||||
| 				} else { | 				} else { | ||||||
| 					userCount++; | 					userCount++; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user