projects/moments/app/src/main/java/io/v/moments/ux/MainActivity.java
/**
     * On new permissions, assume it's a fresh install and wipe the working
     * directory.   File formats and naming might have changed.  This is not
     * good for permanent photo management obviously.
     */
On new permissions, assume it's a fresh install and wipe the working
directory.   File formats and naming might have changed.  This is not
good for permanent photo management obviously.
On new permissions assume it ' s a fresh install and wipe the working directory . File formats and naming might have changed . This is not good for permanent photo management obviously .
@Override
    public void onRequestPermissionsResult(
            int requestCode, String[] permissions, int[] results) {
        logState("onRequestPermissionsResult");
        if (mPermissionManager.granted(requestCode, permissions, results)) {
            FileUtil.initializeDirectory(
                    Config.getWorkingDirectory(this));
            return;
        }
        toast(getString(R.string.need_permissions));
    }
@ Override public void onRequestPermissionsResult ( int requestCode , String [ ] permissions , int [ ] results ) { logState ( "onRequestPermissionsResult" ) ; if ( mPermissionManager . granted ( requestCode , permissions , results ) ) { FileUtil . initializeDirectory ( Config . getWorkingDirectory ( this ) ) ; return ; } toast ( getString ( R . string . need_permissions ) ) ; }
On new permissions, assume it's a fresh install and wipe the working
 directory.
On new permissions assume it ' s a fresh install and wipe the working directory .