fixes
This commit is contained in:
parent
e7d45120ba
commit
246e4823ad
@ -303,7 +303,7 @@ public class LoginActivity extends BaseFragment implements NotificationCenter.No
|
||||
|
||||
@Override
|
||||
public View createView(Context context) {
|
||||
actionBar.setTitle(LocaleController.getString("NekogramWithEmoji", R.string.NekoX));
|
||||
actionBar.setTitle(LocaleController.getString("NekoX", R.string.NekoX));
|
||||
actionBar.setActionBarMenuOnItemClick(new ActionBar.ActionBarMenuOnItemClick() {
|
||||
@Override
|
||||
public void onItemClick(int id) {
|
||||
@ -1311,7 +1311,7 @@ public class LoginActivity extends BaseFragment implements NotificationCenter.No
|
||||
return;
|
||||
}
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(getParentActivity());
|
||||
builder.setTitle(LocaleController.getString("NekogramWithEmoji", R.string.NekoX));
|
||||
builder.setTitle(LocaleController.getString("NekoX", R.string.NekoX));
|
||||
builder.setMessage(LocaleController.getString("StopLoading", R.string.StopLoading));
|
||||
builder.setPositiveButton(LocaleController.getString("WaitMore", R.string.WaitMore), null);
|
||||
builder.setNegativeButton(LocaleController.getString("Stop", R.string.Stop), (dialogInterface, i) -> {
|
||||
@ -2181,10 +2181,10 @@ public class LoginActivity extends BaseFragment implements NotificationCenter.No
|
||||
return;
|
||||
}
|
||||
if (countryState == 1) {
|
||||
needShowAlert(LocaleController.getString("NekogramWithEmoji", R.string.NekoX), LocaleController.getString("ChooseCountry", R.string.ChooseCountry));
|
||||
needShowAlert(LocaleController.getString("NekoX", R.string.NekoX), LocaleController.getString("ChooseCountry", R.string.ChooseCountry));
|
||||
return;
|
||||
} else if (countryState == 2 && !BuildVars.DEBUG_VERSION) {
|
||||
needShowAlert(LocaleController.getString("NekogramWithEmoji", R.string.NekoX), LocaleController.getString("WrongCountry", R.string.WrongCountry));
|
||||
needShowAlert(LocaleController.getString("NekoX", R.string.NekoX), LocaleController.getString("WrongCountry", R.string.WrongCountry));
|
||||
return;
|
||||
}
|
||||
if (codeField.length() == 0) {
|
||||
@ -2211,7 +2211,7 @@ public class LoginActivity extends BaseFragment implements NotificationCenter.No
|
||||
if (PhoneNumberUtils.compare(phone, userPhone) && ConnectionsManager.native_isTestBackend(currentAccount) == ConnectionsManager.native_isTestBackend(a)) {
|
||||
final int num = a;
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(getParentActivity());
|
||||
builder.setTitle(LocaleController.getString("NekogramWithEmoji", R.string.NekoX));
|
||||
builder.setTitle(LocaleController.getString("NekoX", R.string.NekoX));
|
||||
builder.setMessage(LocaleController.getString("AccountAlreadyLoggedIn", R.string.AccountAlreadyLoggedIn));
|
||||
builder.setPositiveButton(LocaleController.getString("AccountSwitch", R.string.AccountSwitch), (dialog, which) -> {
|
||||
if (UserConfig.selectedAccount != num) {
|
||||
@ -3210,7 +3210,7 @@ public class LoginActivity extends BaseFragment implements NotificationCenter.No
|
||||
public boolean onBackPressed(boolean force) {
|
||||
if (!force) {
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(getParentActivity());
|
||||
builder.setTitle(LocaleController.getString("NekogramWithEmoji", R.string.NekoX));
|
||||
builder.setTitle(LocaleController.getString("NekoX", R.string.NekoX));
|
||||
builder.setMessage(LocaleController.getString("StopVerification", R.string.StopVerification));
|
||||
builder.setPositiveButton(LocaleController.getString("Continue", R.string.Continue), null);
|
||||
builder.setNegativeButton(LocaleController.getString("Stop", R.string.Stop), (dialogInterface, i) -> {
|
||||
@ -4697,7 +4697,7 @@ public class LoginActivity extends BaseFragment implements NotificationCenter.No
|
||||
public boolean onBackPressed(boolean force) {
|
||||
if (!force) {
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(getParentActivity());
|
||||
builder.setTitle(LocaleController.getString("NekogramWithEmoji", R.string.NekoX));
|
||||
builder.setTitle(LocaleController.getString("NekoX", R.string.NekoX));
|
||||
builder.setMessage(LocaleController.getString("AreYouSureRegistration", R.string.AreYouSureRegistration));
|
||||
builder.setNegativeButton(LocaleController.getString("Stop", R.string.Stop), (dialogInterface, i) -> {
|
||||
onBackPressed(true);
|
||||
|
@ -169,6 +169,10 @@ public class NekoChatSettingsActivity extends BaseFragment implements Notificati
|
||||
if (!showCensoredFeatures) {
|
||||
cellGroup.rows.remove(disableChatActionRow);
|
||||
cellGroup.rows.remove(disableChoosingStickerRow);
|
||||
cellGroup.rows.remove(ignoreBlockedRow);
|
||||
NekomuraConfig.disableChatAction.setConfigBool(false);
|
||||
NekomuraConfig.disableChoosingSticker.setConfigBool(false);
|
||||
NekomuraConfig.ignoreBlocked.setConfigBool(false);
|
||||
}
|
||||
|
||||
listAdapter = new ListAdapter(context);
|
||||
|
@ -5,6 +5,7 @@ import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
|
||||
import cn.hutool.core.util.ArrayUtil;
|
||||
import org.telegram.messenger.ApplicationLoader;
|
||||
import org.telegram.messenger.BuildVars;
|
||||
import org.telegram.messenger.FileLog;
|
||||
@ -527,7 +528,7 @@ public class NekomuraConfig {
|
||||
}
|
||||
|
||||
public static boolean showCensoredFeatures(long myId) {
|
||||
return NekoXConfig.developerMode || Arrays.stream(NekoXConfig.developers).anyMatch(id -> id == myId);
|
||||
return NekoXConfig.developerMode || NekoXConfig.customApi > 0 || ArrayUtil.contains(NekoXConfig.developers, myId);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user