Github user sagar15795 commented on a diff in the pull request:

    
https://github.com/apache/incubator-taverna-mobile/pull/55#discussion_r168921942
  
    --- Diff: 
app/src/main/java/org/apache/taverna/mobile/ui/DashboardActivity.java ---
    @@ -253,6 +249,28 @@ public boolean onCreateOptionsMenu(Menu menu) {
             return true;
         }
     
    +    private void signOutConfirmation() {
    +        new AlertDialog.Builder(this)
    +                .setTitle(R.string.sign_out)
    +                .setMessage(R.string.sign_out_message)
    +                .setPositiveButton(R.string.sign_out, new 
DialogInterface.OnClickListener() {
    +
    +                    public void onClick(DialogInterface dialog, int 
whichButton) {
    +                        signOut();
    +                    }
    +                })
    +                .setNegativeButton(android.R.string.no, null).show();
    +    }
    +
    +    private void signOut() {
    +        mDrawerLayout.closeDrawers();
    +        dataManager.getPreferencesHelper().setLoggedInFlag(false);
    --- End diff --
    
    Also clear all shared preferences data and database data


---

Reply via email to