always prevent edit in quicksy mode

This commit is contained in:
Daniel Gultsch 2018-10-24 13:54:57 +02:00
parent 60fc985298
commit 36c9a452ab
3 changed files with 10 additions and 3 deletions

View file

@ -1,7 +1,5 @@
package eu.siacs.conversations.services;
import eu.siacs.conversations.services.XmppConnectionService;
public class QuickConversationsService {
private final XmppConnectionService service;
@ -9,4 +7,8 @@ public class QuickConversationsService {
QuickConversationsService(XmppConnectionService xmppConnectionService) {
this.service = xmppConnectionService;
}
public static boolean isQuicksy() {
return false;
}
}

View file

@ -58,6 +58,7 @@ import eu.siacs.conversations.entities.Account;
import eu.siacs.conversations.entities.Presence;
import eu.siacs.conversations.entities.PresenceTemplate;
import eu.siacs.conversations.services.BarcodeProvider;
import eu.siacs.conversations.services.QuickConversationsService;
import eu.siacs.conversations.services.XmppConnectionService;
import eu.siacs.conversations.services.XmppConnectionService.OnAccountUpdate;
import eu.siacs.conversations.services.XmppConnectionService.OnCaptchaRequested;
@ -940,7 +941,7 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat
}
final boolean editable = !mAccount.isOptionSet(Account.OPTION_LOGGED_IN_SUCCESSFULLY);
final boolean editable = !mAccount.isOptionSet(Account.OPTION_LOGGED_IN_SUCCESSFULLY) && !QuickConversationsService.isQuicksy();
this.binding.accountJid.setEnabled(editable);
this.binding.accountJid.setFocusable(editable);
this.binding.accountJid.setFocusableInTouchMode(editable);

View file

@ -256,6 +256,10 @@ public class QuickConversationsService {
return mVerificationRequestInProgress.get();
}
public static boolean isQuicksy() {
return true;
}
public interface OnVerificationRequested {
void onVerificationRequestFailed(int code);