mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-12 10:32:36 +00:00
Fixes to url handling in settings & notification
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
60b340ce89
commit
68586ba901
@ -522,7 +522,7 @@ public class SettingsController extends BaseController {
|
||||
|
||||
if (currentUser != null) {
|
||||
|
||||
baseUrlTextView.setText(currentUser.getBaseUrl());
|
||||
baseUrlTextView.setText(Uri.parse(currentUser.getBaseUrl()).getHost());
|
||||
|
||||
reauthorizeButton.addPreferenceClickListener(view14 -> {
|
||||
getRouter().pushController(RouterTransaction.with(
|
||||
|
@ -266,8 +266,8 @@ public class NotificationWorker extends Worker {
|
||||
|
||||
CRC32 crc32 = new CRC32();
|
||||
|
||||
String baseUrl =
|
||||
signatureVerification.getUserEntity().getBaseUrl().substring(signatureVerification.getUserEntity().getBaseUrl().indexOf("://") + 3);
|
||||
Uri uri = Uri.parse(signatureVerification.getUserEntity().getBaseUrl());
|
||||
String baseUrl = uri.getHost();
|
||||
|
||||
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context, "1")
|
||||
.setLargeIcon(largeIcon)
|
||||
|
Loading…
Reference in New Issue
Block a user