mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Use signed in, signed out to describe whether the DB is open or closed.
Hopefully this gives users a better understanding of whether their messages and contacts are accessible than "Briar is running" and "Quit".
This commit is contained in:
@@ -67,7 +67,7 @@ public class BriarActivity extends RoboFragmentActivity {
|
||||
if(bound) unbindService(serviceConnection);
|
||||
}
|
||||
|
||||
protected void quit() {
|
||||
protected void signOut() {
|
||||
new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
@@ -135,19 +135,19 @@ public class DashboardActivity extends BriarActivity {
|
||||
});
|
||||
buttons.add(syncButton);
|
||||
|
||||
Button quitButton = new Button(this);
|
||||
quitButton.setLayoutParams(matchMatch);
|
||||
quitButton.setBackgroundResource(0);
|
||||
quitButton.setCompoundDrawablesWithIntrinsicBounds(0,
|
||||
Button signOutButton = new Button(this);
|
||||
signOutButton.setLayoutParams(matchMatch);
|
||||
signOutButton.setBackgroundResource(0);
|
||||
signOutButton.setCompoundDrawablesWithIntrinsicBounds(0,
|
||||
R.drawable.device_access_accounts, 0, 0);
|
||||
quitButton.setText(R.string.quit_button);
|
||||
quitButton.setOnClickListener(new OnClickListener() {
|
||||
signOutButton.setText(R.string.sign_out_button);
|
||||
signOutButton.setOnClickListener(new OnClickListener() {
|
||||
public void onClick(View view) {
|
||||
showSpinner();
|
||||
quit();
|
||||
signOut();
|
||||
}
|
||||
});
|
||||
buttons.add(quitButton);
|
||||
buttons.add(signOutButton);
|
||||
|
||||
int pad = LayoutUtils.getPadding(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user