From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: alina sireneva <alina@tei.su>
Date: Wed, 6 May 2026 21:48:27 +0200
Subject: our own google maps token + support for maplibre

---
 TMessagesProj/config/debug/AndroidManifest.xml                  | 2 +-
 TMessagesProj/config/debug/AndroidManifest_SDK23.xml            | 2 +-
 TMessagesProj/config/release/AndroidManifest.xml                | 2 +-
 TMessagesProj/config/release/AndroidManifest_SDK23.xml          | 2 +-
 TMessagesProj/config/release/AndroidManifest_standalone.xml     | 2 +-
 .../src/main/java/org/telegram/ui/LocationActivity.java         | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/TMessagesProj/config/debug/AndroidManifest.xml b/TMessagesProj/config/debug/AndroidManifest.xml
index 0000000..0000000 100644
--- a/TMessagesProj/config/debug/AndroidManifest.xml
+++ b/TMessagesProj/config/debug/AndroidManifest.xml
@@ -30,7 +30,7 @@
         android:requestLegacyExternalStorage="true"
         tools:replace="android:supportsRtl">
 
-        <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyA-t0jLPjUt2FxrA8VPK2EiYHcYcboIR6k" />
+        <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyC0kWYWax7MdxCDd9i9uSDXbeeHb4BZOx4" />
 
         <service
             android:name="org.telegram.messenger.GcmPushListenerService" android:exported="true">
diff --git a/TMessagesProj/config/debug/AndroidManifest_SDK23.xml b/TMessagesProj/config/debug/AndroidManifest_SDK23.xml
index 0000000..0000000 100644
--- a/TMessagesProj/config/debug/AndroidManifest_SDK23.xml
+++ b/TMessagesProj/config/debug/AndroidManifest_SDK23.xml
@@ -37,7 +37,7 @@
         android:requestLegacyExternalStorage="true"
         tools:replace="android:supportsRtl">
 
-        <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyA-t0jLPjUt2FxrA8VPK2EiYHcYcboIR6k" />
+        <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyC0kWYWax7MdxCDd9i9uSDXbeeHb4BZOx4" />
 
         <service
             android:name="org.telegram.messenger.GcmPushListenerService" android:exported="true">
diff --git a/TMessagesProj/config/release/AndroidManifest.xml b/TMessagesProj/config/release/AndroidManifest.xml
index 0000000..0000000 100644
--- a/TMessagesProj/config/release/AndroidManifest.xml
+++ b/TMessagesProj/config/release/AndroidManifest.xml
@@ -30,7 +30,7 @@
         android:requestLegacyExternalStorage="true"
         tools:replace="android:supportsRtl">
 
-        <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyA-t0jLPjUt2FxrA8VPK2EiYHcYcboIR6k" />
+        <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyC0kWYWax7MdxCDd9i9uSDXbeeHb4BZOx4" />
 
         <service
             android:name="org.telegram.messenger.GcmPushListenerService" android:exported="true">
diff --git a/TMessagesProj/config/release/AndroidManifest_SDK23.xml b/TMessagesProj/config/release/AndroidManifest_SDK23.xml
index 0000000..0000000 100644
--- a/TMessagesProj/config/release/AndroidManifest_SDK23.xml
+++ b/TMessagesProj/config/release/AndroidManifest_SDK23.xml
@@ -38,7 +38,7 @@
         android:requestLegacyExternalStorage="true"
         tools:replace="android:supportsRtl">
 
-        <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyA-t0jLPjUt2FxrA8VPK2EiYHcYcboIR6k" />
+        <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyC0kWYWax7MdxCDd9i9uSDXbeeHb4BZOx4" />
 
         <service
             android:name="org.telegram.messenger.GcmPushListenerService"
diff --git a/TMessagesProj/config/release/AndroidManifest_standalone.xml b/TMessagesProj/config/release/AndroidManifest_standalone.xml
index 0000000..0000000 100644
--- a/TMessagesProj/config/release/AndroidManifest_standalone.xml
+++ b/TMessagesProj/config/release/AndroidManifest_standalone.xml
@@ -124,7 +124,7 @@
             </intent-filter>
         </activity-alias>
 
-        <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyA-t0jLPjUt2FxrA8VPK2EiYHcYcboIR6k" />
+        <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyC0kWYWax7MdxCDd9i9uSDXbeeHb4BZOx4" />
 
         <service
             android:name="org.telegram.messenger.GcmPushListenerService" android:exported="true">
diff --git a/TMessagesProj/src/main/java/org/telegram/ui/LocationActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/LocationActivity.java
index 0000000..0000000 100644
--- a/TMessagesProj/src/main/java/org/telegram/ui/LocationActivity.java
+++ b/TMessagesProj/src/main/java/org/telegram/ui/LocationActivity.java
@@ -760,7 +760,7 @@ public class LocationActivity extends BaseFragment implements NotificationCenter
         mapTypeButton.setAdditionalYOffset(-dp(10));
         mapTypeButton.addSubItem(map_list_menu_map, R.drawable.msg_map, getString(R.string.Map), getResourceProvider());
         mapTypeButton.addSubItem(map_list_menu_satellite, R.drawable.msg_satellite, getString(R.string.Satellite), getResourceProvider());
-        mapTypeButton.addSubItem(map_list_menu_hybrid, R.drawable.msg_hybrid, getString(R.string.Hybrid), getResourceProvider());
+        if (desu.inugram.helpers.maps.MapsHelper.isHybridAvailable()) mapTypeButton.addSubItem(map_list_menu_hybrid, R.drawable.msg_hybrid, getString(R.string.Hybrid), getResourceProvider());
         mapTypeButton.setContentDescription(getString(R.string.AccDescrMoreOptions));
         Drawable drawable = Theme.createSimpleSelectorCircleDrawable(dp(40), getThemedColor(Theme.key_location_actionBackground), getThemedColor(Theme.key_location_actionPressedBackground));
         ScaleStateListAnimator.apply(mapTypeButton);
