warn when unpermitted choice made

Let OS ask for STORAGE when user chooses Downloads dict storage option,
but do nothing if it's not granted. Existing code asks again when the
actual move is to done.
This commit is contained in:
Eric House 2017-01-04 06:46:44 -08:00
parent 2eaa3b82e7
commit 7c033ccdf1

View file

@ -375,6 +375,12 @@ public class DictsDelegate extends ListDelegateBase
Button btn =
dlg.getButton( AlertDialog.BUTTON_POSITIVE );
btn.setEnabled( true );
// Ask for STORAGE (but do nothing if not granted)
if ( DictLoc.DOWNLOAD == itemToRealLoc( item ) ) {
new Perms23.Builder( Perm.STORAGE )
.asyncQuery( m_activity );
}
}
};