Prevent Sharing Files on Android for Now #194

Merged
dan merged 2 commits from android-files into trunk 2021-10-01 15:05:37 +00:00
1 changed files with 11 additions and 11 deletions
Showing only changes of commit 0cdf18df79 - Show all commits

View File

@ -84,18 +84,18 @@ class _MessageViewState extends State<MessageView> {
var appBarButtons = <Widget>[];
if (Provider.of<ContactInfoState>(context).isOnline()) {
if (Platform.isAndroid == false) {
appBarButtons.add(IconButton(
icon: Icon(Icons.attach_file, size: 24),
tooltip: AppLocalizations.of(context)!.tooltipSendFile,
onPressed: _showFilePicker,
));
}
appBarButtons.add(IconButton(
icon: Icon(CwtchIcons.send_invite, size: 24),
tooltip: AppLocalizations.of(context)!.sendInvite,
onPressed: () {
_modalSendInvitation(context);
}));
icon: Icon(Icons.attach_file, size: 24),
tooltip: AppLocalizations.of(context)!.tooltipSendFile,
onPressed: _showFilePicker,
));
}
appBarButtons.add(IconButton(
icon: Icon(CwtchIcons.send_invite, size: 24),
tooltip: AppLocalizations.of(context)!.sendInvite,
onPressed: () {
_modalSendInvitation(context);
}));
}
appBarButtons.add(IconButton(
icon: Provider.of<ContactInfoState>(context, listen: false).isGroup == true ? Icon(CwtchIcons.group_settings_24px) : Icon(CwtchIcons.peer_settings_24px),