mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
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:
parent
2eaa3b82e7
commit
7c033ccdf1
1 changed files with 6 additions and 0 deletions
|
@ -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 );
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue