mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-08 00:16:09 +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);
|
||||
value = resultItem.getJSONObject(GetRemoteShareesOperation.NODE_VALUE);
|
||||
type = value.getInt(GetRemoteShareesOperation.PROPERTY_SHARE_TYPE);
|
||||
if (type == ShareType.GROUP) {
|
||||
if (type == ShareType.GROUP.getValue()) {
|
||||
groupCount++;
|
||||
} else {
|
||||
userCount++;
|
||||
@ -158,7 +158,7 @@ public class GetShareesTest extends RemoteTest {
|
||||
resultItem = (JSONObject) result.getData().get(i);
|
||||
value = resultItem.getJSONObject(GetRemoteShareesOperation.NODE_VALUE);
|
||||
type = value.getInt(GetRemoteShareesOperation.PROPERTY_SHARE_TYPE);
|
||||
if (type == ShareType.GROUP) {
|
||||
if (type == ShareType.GROUP.getValue()) {
|
||||
groupCount++;
|
||||
} else {
|
||||
userCount++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user