Skip to content

Commit

Permalink
Card 20 (When collaborators (group users) uploads an image it MUST be
Browse files Browse the repository at this point in the history
PRIVATE. So don't let user to change it or don't show the toggle to
change it.)
- SyncUploadFragment, UploadActivity.UploadUiFragment: added disabling
of privateSwitch for limited account access to the init method
  • Loading branch information
httpdispatch committed Oct 15, 2013
1 parent 3151c06 commit 2a46413
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/com/trovebox/android/app/SyncUploadFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ public void onClick(View v)
facebookSwitch = (Switch) v.findViewById(R.id.facebook_switch);

albumsText.setOnClickListener(this);

if (Preferences.isLimitedAccountAccessType()) {
privateSwitch.setChecked(true);
privateSwitch.setEnabled(false);
}
privateSwitch.setOnCheckedChangeListener(new OnCheckedChangeListener() {

@Override
Expand Down
4 changes: 4 additions & 0 deletions app/src/com/trovebox/android/app/UploadActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ void init(View v, Bundle savedInstanceState)
twitterSwitch = (Switch) v.findViewById(R.id.twitter_switch);
facebookSwitch = (Switch) v.findViewById(R.id.facebook_switch);

if (Preferences.isLimitedAccountAccessType()) {
privateSwitch.setChecked(true);
privateSwitch.setEnabled(false);
}
privateSwitch.setOnCheckedChangeListener(new OnCheckedChangeListener() {

@Override
Expand Down

0 comments on commit 2a46413

Please sign in to comment.