|
@@ -71,9 +71,9 @@ public class FileDetailTabAdapter extends FragmentStatePagerAdapter {
|
|
@Override
|
|
@Override
|
|
public int getCount() {
|
|
public int getCount() {
|
|
if (file.isEncrypted()) {
|
|
if (file.isEncrypted()) {
|
|
- return 1;
|
|
|
|
|
|
+ return 1; // sharing not allowed for encrypted files, thus only show first tab (activities)
|
|
} else {
|
|
} else {
|
|
- return 2;
|
|
|
|
|
|
+ return 2; // show activities and sharing tab
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|