Minor fixes

This commit is contained in:
世界 2021-01-31 10:44:09 +08:00
parent bb0a1720a7
commit 20606ea25e
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
3 changed files with 5 additions and 9 deletions

View File

@ -1376,6 +1376,7 @@ public class ChatEditActivity extends BaseFragment implements ImageUpdater.Image
}
blockCell.setTextAndValue(LocaleController.getString("ChannelPermissions", R.string.ChannelPermissions), count + " / 9", true);
}
adminCell.setText(LocaleController.getString("ChannelAdministrators", R.string.ChannelAdministrators), true);
if (info.participants != null) {
if (ChatObject.isChannel(currentChat) && !ChatObject.hasAdminRights(currentChat) && info.participants.participants.size() != info.participants_count && realAdminCount == 0) {
adminCell.setText(LocaleController.getString("ChannelAdministrators", R.string.ChannelAdministrators), true);

View File

@ -4955,11 +4955,6 @@ public class ChatActivityEnterView extends FrameLayout implements NotificationCe
scheduledButton.setTranslationX(0);
}
}
if (checkBotButton()) {
animators.add(ObjectAnimator.ofFloat(botButton, View.SCALE_X, 1f));
animators.add(ObjectAnimator.ofFloat(botButton, View.SCALE_Y, 1f));
animators.add(ObjectAnimator.ofFloat(botButton, View.ALPHA, 1f));
}
runningAnimation2.playTogether(animators);
runningAnimation2.setDuration(100);
runningAnimation2.addListener(new AnimatorListenerAdapter() {

View File

@ -843,10 +843,10 @@ public class ProxyListActivity extends BaseFragment implements NotificationCente
LocaleController.getString("AddProxySocks5", R.string.AddProxySocks5),
LocaleController.getString("AddProxyTelegram", R.string.AddProxyTelegram),
LocaleController.getString("AddProxyVmess", R.string.AddProxyVmess),
LocaleController.getString("AddProxyTrojan", R.string.AddProxyTrojan),
Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP ? null : LocaleController.getString("AddProxySS", R.string.AddProxySS),
Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP ? null : LocaleController.getString("AddProxySSR", R.string.AddProxySSR),
BuildVars.isMini ? null : LocaleController.getString("AddProxyVmess", R.string.AddProxyVmess),
BuildVars.isMini ? null :LocaleController.getString("AddProxyTrojan", R.string.AddProxyTrojan),
BuildVars.isMini || Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP ? null : LocaleController.getString("AddProxySS", R.string.AddProxySS),
BuildVars.isMini || Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP ? null : LocaleController.getString("AddProxySSR", R.string.AddProxySSR),
LocaleController.getString("ImportProxyFromClipboard", R.string.ImportProxyFromClipboard),
LocaleController.getString("ScanQRCode", R.string.ScanQRCode)