Revision 72b0db4c app/src/info/guardianproject/notepadbot/NoteCipher.java

View differences:

app/src/info/guardianproject/notepadbot/NoteCipher.java
232 232
                    mCacheWord.manuallyLock();
233 233
                return true;
234 234
            case SETTINGS_ID:
235
            	startActivity(new Intent(this, Settings.class));
235
            	if ( !mCacheWord.isLocked()) {
236
            		startActivity(new Intent(this, Settings.class));
237
            	}
236 238
                return true;
237 239
        }
238 240

  
......
274 276
    }
275 277

  
276 278
    private void shareEntry(final long id) {
277
        if (mCacheWord.isLocked())
279
        if (mCacheWord.isLocked()) {
278 280
            return;
281
        }
279 282
        
280 283
        getSupportLoaderManager().restartLoader(SHARE_ID, null, new LoaderManager.LoaderCallbacks<Cursor>() {
281 284

  
......
445 448
     * Call this to delete the original image, will ask the user
446 449
     */
447 450
    private void handleDelete() {
451
    	if (mCacheWord.isLocked()) {
452
            return;
453
        }
448 454
        final AlertDialog.Builder b = new AlertDialog.Builder(this);
449 455
        b.setIcon(android.R.drawable.ic_dialog_alert);
450 456
        b.setTitle(R.string.app_name);

Also available in: Unified diff