show password field only on non-logged in or magic created accounts
This commit is contained in:
		
							parent
							
								
									a4f4c80743
								
							
						
					
					
						commit
						1ae6042ca8
					
				| @ -966,10 +966,12 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat | ||||
| 		this.binding.accountJid.setEnabled(editable); | ||||
| 		this.binding.accountJid.setFocusable(editable); | ||||
| 		this.binding.accountJid.setFocusableInTouchMode(editable); | ||||
| 		if (editable) { | ||||
| 			this.mPassword.setCustomSelectionActionModeCallback(null); | ||||
| 
 | ||||
| 
 | ||||
| 		if (mAccount.isOptionSet(Account.OPTION_MAGIC_CREATE) || !mAccount.isOptionSet(Account.OPTION_LOGGED_IN_SUCCESSFULLY)) { | ||||
| 			this.binding.accountPasswordLayout.setPasswordVisibilityToggleEnabled(true); | ||||
| 		} else { | ||||
| 			this.mPassword.setCustomSelectionActionModeCallback(new DisabledActionModeCallback()); | ||||
| 			this.binding.accountPasswordLayout.setPasswordVisibilityToggleEnabled(false); | ||||
| 		} | ||||
| 
 | ||||
| 		if (!mInitMode) { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Daniel Gultsch
						Daniel Gultsch