mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-11 11:45:01 -05:00
24 lines
614 B
Java
24 lines
614 B
Java
package eu.siacs.conversations.services;
|
|
|
|
public class AbstractConnectionManager {
|
|
protected XmppConnectionService mXmppConnectionService;
|
|
|
|
public AbstractConnectionManager(XmppConnectionService service) {
|
|
this.mXmppConnectionService = service;
|
|
}
|
|
|
|
public XmppConnectionService getXmppConnectionService() {
|
|
return this.mXmppConnectionService;
|
|
}
|
|
|
|
public long getAutoAcceptFileSize() {
|
|
String config = this.mXmppConnectionService.getPreferences().getString(
|
|
"auto_accept_file_size", "524288");
|
|
try {
|
|
return Long.parseLong(config);
|
|
} catch (NumberFormatException e) {
|
|
return 524288;
|
|
}
|
|
}
|
|
}
|