Skip to content

Commit

Permalink
Revert: "chore: always make build to DEBUG_PRIVATE_VERSION"
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Apr 19, 2024
1 parent e1dc81a commit 4ab8dc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
public class BuildVars {

public static final boolean IS_BILLING_UNAVAILABLE = true;
public static boolean DEBUG_VERSION = true;
public static boolean DEBUG_VERSION = BuildConfig.BUILD_TYPE.equals("debug");
public static boolean DEBUG_PRIVATE_VERSION = DEBUG_VERSION;
public static boolean LOGS_ENABLED = DEBUG_PRIVATE_VERSION;
public static boolean USE_CLOUD_STRINGS = true;
Expand Down Expand Up @@ -47,7 +47,7 @@ public class BuildVars {
BUILD_VERSION_STRING = BuildConfig.VERSION_NAME;
}

if (!DEBUG_PRIVATE_VERSION && ApplicationLoader.applicationContext != null) {
if (ApplicationLoader.applicationContext != null) {
SharedPreferences sharedPreferences = ApplicationLoader.applicationContext.getSharedPreferences("systemConfig", Context.MODE_PRIVATE);
LOGS_ENABLED = DEBUG_VERSION = sharedPreferences.getBoolean("logsEnabled", DEBUG_VERSION);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@

public class StickersAlert extends BottomSheet implements NotificationCenter.NotificationCenterDelegate {

public final static boolean DISABLE_STICKER_EDITOR = !BuildVars.DEBUG_PRIVATE_VERSION;
public final static boolean DISABLE_STICKER_EDITOR = false;

public interface StickersAlertDelegate {
void onStickerSelected(TLRPC.Document sticker, String query, Object parent, MessageObject.SendAnimationData sendAnimationData, boolean clearsInputField, boolean notify, int scheduleDate);
Expand Down

0 comments on commit 4ab8dc1

Please sign in to comment.