Skip to content

Commit

Permalink
chore: change nasettings to nnnsettings
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao authored and NextAlone committed Jan 27, 2024
1 parent 31538f5 commit 6ab6759
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2172,7 +2172,7 @@ private boolean handleIntent(Intent intent, boolean isNew, boolean restore, bool
}
} else if (path.startsWith("addstickers/")) {
sticker = path.replace("addstickers/", "");
} else if (path.startsWith("nasettings/")) {
} else if (path.startsWith("nnnsettings/")) {
SettingsHelper.processDeepLink(data, fragment -> {
AndroidUtilities.runOnUIThread(() -> presentFragment(fragment, false, false));
if (AndroidUtilities.isTablet()) {
Expand Down Expand Up @@ -2625,7 +2625,7 @@ private boolean handleIntent(Intent intent, boolean isNew, boolean restore, bool
} else if ((url.startsWith("tg:calllog") || url.startsWith("tg://calllog"))) {
showCallLog = true;
} else if (url.startsWith("tg:null") || url.startsWith("tg://null")) {
url = url.replace("tg:null", "tg://t.me/nasettings").replace("tg://null", "tg://t.me/nasettings");
url = url.replace("tg:null", "tg://t.me/nnnsettings").replace("tg://null", "tg://t.me/nnnsettings");
data = Uri.parse(url);
SettingsHelper.processDeepLink(data, fragment -> {
AndroidUtilities.runOnUIThread(() -> presentFragment(fragment, false, false));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {
if (key != null && holder != null && listAdapter.isEnabled(holder) && rowMapReverse.containsKey(position)) {
showDialog(new AlertDialog.Builder(context).setItems(new CharSequence[]{LocaleController.getString("CopyLink", R.string.CopyLink)}, (dialogInterface, i) -> {
AndroidUtilities.addToClipboard(
String.format(Locale.getDefault(), "https://%s/nasettings/%s?r=%s", getMessagesController().linkPrefix, getKey(), rowMapReverse.get(position)));
String.format(Locale.getDefault(), "https://%s/nnnsettings/%s?r=%s", getMessagesController().linkPrefix, getKey(), rowMapReverse.get(position)));
BulletinFactory.of(BaseActivity.this).createCopyLinkBulletin().show();
}).create());
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
cell.setBackground(Theme.getThemedDrawable(mContext, R.drawable.greydivider_bottom, Theme.key_windowBackgroundGrayShadow));
}
} else if (position == showInSettings2Row) {
var link = String.format(Locale.ENGLISH, "https://t.me/nasettings/%s", PasscodeHelper.getSettingsKey());
var link = String.format(Locale.ENGLISH, "https://t.me/nnnsettings/%s", PasscodeHelper.getSettingsKey());
var stringBuilder = new SpannableStringBuilder(AndroidUtilities.replaceTags(LocaleController.getString("PasscodeShowInSettingsAbout", R.string.PasscodeShowInSettingsAbout)));
stringBuilder.append("\n").append(link);
stringBuilder.setSpan(new URLSpanNoUnderline(null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static void processDeepLink(Uri uri, Callback callback, Runnable unknown)
return;
}
var segments = uri.getPathSegments();
if (segments.isEmpty() || segments.size() > 2 || !"nasettings".equals(segments.get(0))) {
if (segments.isEmpty() || segments.size() > 2 || !"nnnsettings".equals(segments.get(0))) {
unknown.run();
return;
}
Expand Down

0 comments on commit 6ab6759

Please sign in to comment.