Verified Commit 80561910 authored by akwizgran's avatar akwizgran

Disable expiry for release builds.

parent bffb5c94
Pipeline #1487 passed with stage
in 13 minutes and 33 seconds
......@@ -20,6 +20,8 @@ import java.util.logging.Logger;
import javax.inject.Inject;
import static org.briarproject.briar.android.BriarApplication.EXPIRY_DATE;
import static org.briarproject.briar.android.TestingConstants.IS_BETA_BUILD;
import static org.briarproject.briar.android.TestingConstants.IS_DEBUG_BUILD;
public class SplashScreenActivity extends BaseActivity {
......@@ -60,7 +62,8 @@ public class SplashScreenActivity extends BaseActivity {
}
protected void startNextActivity() {
if (System.currentTimeMillis() >= EXPIRY_DATE) {
if ((IS_DEBUG_BUILD || IS_BETA_BUILD)
&& System.currentTimeMillis() >= EXPIRY_DATE) {
LOG.info("Expired");
startActivity(new Intent(this, ExpiredActivity.class));
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment