Skip to content

Commit

Permalink
fix: merge 10.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Aug 15, 2023
1 parent 504d79b commit b65bb2d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,11 @@ public float getMaxZoomLevel() {
return (float) this.mapView.getMaxZoomLevel();
}

@Override
public float getMinZoomLevel() {
return (float) this.mapView.getMinZoomLevel();
}

@Override
public void setMyLocationEnabled(boolean enabled) {
if (myLocationOverlay != null) {
Expand Down Expand Up @@ -343,6 +348,11 @@ public IUISettings getUiSettings() {
return this.uiSettings;
}

@Override
public void setOnCameraIdleListener(Runnable callback) {

}

@Override
public void setOnCameraMoveStartedListener(OnCameraMoveStartedListener onCameraMoveStartedListener) {
this.mapView.addMapListener(new MapListener() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.telegram.messenger.NotificationCenter;
import org.telegram.messenger.NotificationsController;
import org.telegram.messenger.R;
import org.telegram.messenger.SharedConfig;
import org.telegram.messenger.UserConfig;
import org.telegram.messenger.Utilities;
import org.telegram.ui.ActionBar.BottomSheet;
Expand Down Expand Up @@ -114,7 +115,7 @@ public NotificationPermissionDialog(Context context, Utilities.Callback<Boolean>
});
linearLayout.addView(textView, LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, 48, 14, 14, 14, 10));

for (int a = 0; a < UserConfig.MAX_ACCOUNT_COUNT; ++a) {
for (int a : SharedConfig.activeAccounts) {
try {
NotificationCenter.getInstance(a).addObserver(this, NotificationCenter.updateInterfaces);
} catch (Exception ignore) {}
Expand All @@ -133,7 +134,7 @@ public void didReceivedNotification(int id, int account, Object... args) {

public void updateCounter() {
int counter = 0;
for (int a = 0; a < UserConfig.MAX_ACCOUNT_COUNT; ++a) {
for (int a : SharedConfig.activeAccounts) {
MessagesStorage messagesStorage = MessagesStorage.getInstance(a);
if (messagesStorage != null) {
counter += messagesStorage.getMainUnreadCount();
Expand Down Expand Up @@ -172,7 +173,7 @@ public void dismiss() {
askLater();
}
}
for (int a = 0; a < UserConfig.MAX_ACCOUNT_COUNT; ++a) {
for (int a : SharedConfig.activeAccounts) {
try {
NotificationCenter.getInstance(a).removeObserver(this, NotificationCenter.updateInterfaces);
} catch (Exception ignore) {}
Expand Down

0 comments on commit b65bb2d

Please sign in to comment.