mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Moved the expiry check to the splash screen.
This avoids a possible problem where the app expires while it's running and every activity shows the expiry warning, leaving the user with no way to quit.
This commit is contained in:
@@ -18,8 +18,6 @@ import android.os.IBinder;
|
||||
|
||||
public class BriarActivity extends RoboFragmentActivity {
|
||||
|
||||
// This build expires on 7 February 2014
|
||||
private static final long EXPIRY_DATE = 1391731200 * 1000L;
|
||||
private static final int REQUEST_PASSWORD = 1;
|
||||
|
||||
private static final Logger LOG =
|
||||
@@ -34,13 +32,7 @@ public class BriarActivity extends RoboFragmentActivity {
|
||||
@Override
|
||||
public void onCreate(Bundle state) {
|
||||
super.onCreate(state);
|
||||
if(System.currentTimeMillis() >= EXPIRY_DATE) {
|
||||
if(LOG.isLoggable(INFO)) LOG.info("Expired");
|
||||
Intent i = new Intent(this, ExpiredActivity.class);
|
||||
i.setFlags(FLAG_ACTIVITY_NO_ANIMATION);
|
||||
startActivity(i);
|
||||
finish();
|
||||
} else if(databaseConfig.getEncryptionKey() == null) {
|
||||
if(databaseConfig.getEncryptionKey() == null) {
|
||||
if(LOG.isLoggable(INFO)) LOG.info("No password");
|
||||
Intent i = new Intent(this, PasswordActivity.class);
|
||||
i.setFlags(FLAG_ACTIVITY_NO_ANIMATION);
|
||||
|
||||
Reference in New Issue
Block a user