mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 12:49:55 +01:00
Enable sign-in reminder for release builds.
This commit is contained in:
@@ -36,11 +36,6 @@ public interface TestingConstants {
|
|||||||
*/
|
*/
|
||||||
boolean FEATURE_FLAG_DARK_THEME = false;
|
boolean FEATURE_FLAG_DARK_THEME = false;
|
||||||
|
|
||||||
/**
|
|
||||||
* Feature flag for enabling the sign-in reminder in release builds.
|
|
||||||
*/
|
|
||||||
boolean FEATURE_FLAG_SIGN_IN_REMINDER = IS_DEBUG_BUILD;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Feature flag for enabling the PIN lock in release builds.
|
* Feature flag for enabling the PIN lock in release builds.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import javax.inject.Inject;
|
|||||||
|
|
||||||
import static android.content.Intent.ACTION_BOOT_COMPLETED;
|
import static android.content.Intent.ACTION_BOOT_COMPLETED;
|
||||||
import static android.content.Intent.ACTION_MY_PACKAGE_REPLACED;
|
import static android.content.Intent.ACTION_MY_PACKAGE_REPLACED;
|
||||||
import static org.briarproject.briar.android.TestingConstants.FEATURE_FLAG_SIGN_IN_REMINDER;
|
|
||||||
import static org.briarproject.briar.android.settings.SettingsFragment.NOTIFY_SIGN_IN;
|
import static org.briarproject.briar.android.settings.SettingsFragment.NOTIFY_SIGN_IN;
|
||||||
import static org.briarproject.briar.api.android.AndroidNotificationManager.ACTION_DISMISS_REMINDER;
|
import static org.briarproject.briar.api.android.AndroidNotificationManager.ACTION_DISMISS_REMINDER;
|
||||||
|
|
||||||
@@ -27,8 +26,6 @@ public class SignInReminderReceiver extends BroadcastReceiver {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onReceive(Context ctx, Intent intent) {
|
public void onReceive(Context ctx, Intent intent) {
|
||||||
if (!FEATURE_FLAG_SIGN_IN_REMINDER) return;
|
|
||||||
|
|
||||||
BriarApplication app = (BriarApplication) ctx.getApplicationContext();
|
BriarApplication app = (BriarApplication) ctx.getApplicationContext();
|
||||||
AndroidComponent applicationComponent = app.getApplicationComponent();
|
AndroidComponent applicationComponent = app.getApplicationComponent();
|
||||||
applicationComponent.inject(this);
|
applicationComponent.inject(this);
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ import static org.briarproject.bramble.util.LogUtils.logException;
|
|||||||
import static org.briarproject.bramble.util.LogUtils.now;
|
import static org.briarproject.bramble.util.LogUtils.now;
|
||||||
import static org.briarproject.briar.android.TestingConstants.FEATURE_FLAG_DARK_THEME;
|
import static org.briarproject.briar.android.TestingConstants.FEATURE_FLAG_DARK_THEME;
|
||||||
import static org.briarproject.briar.android.TestingConstants.FEATURE_FLAG_PIN_LOCK;
|
import static org.briarproject.briar.android.TestingConstants.FEATURE_FLAG_PIN_LOCK;
|
||||||
import static org.briarproject.briar.android.TestingConstants.FEATURE_FLAG_SIGN_IN_REMINDER;
|
|
||||||
import static org.briarproject.briar.android.TestingConstants.IS_DEBUG_BUILD;
|
import static org.briarproject.briar.android.TestingConstants.IS_DEBUG_BUILD;
|
||||||
import static org.briarproject.briar.android.activity.RequestCodes.REQUEST_RINGTONE;
|
import static org.briarproject.briar.android.activity.RequestCodes.REQUEST_RINGTONE;
|
||||||
import static org.briarproject.briar.android.navdrawer.NavDrawerActivity.INTENT_SIGN_OUT;
|
import static org.briarproject.briar.android.navdrawer.NavDrawerActivity.INTENT_SIGN_OUT;
|
||||||
@@ -169,8 +168,6 @@ public class SettingsFragment extends PreferenceFragmentCompat
|
|||||||
enableBluetooth = (ListPreference) findPreference("pref_key_bluetooth");
|
enableBluetooth = (ListPreference) findPreference("pref_key_bluetooth");
|
||||||
torNetwork = (ListPreference) findPreference(TOR_NETWORK);
|
torNetwork = (ListPreference) findPreference(TOR_NETWORK);
|
||||||
torMobile = (SwitchPreference) findPreference(TOR_MOBILE);
|
torMobile = (SwitchPreference) findPreference(TOR_MOBILE);
|
||||||
SwitchPreference notifySignIn =
|
|
||||||
(SwitchPreference) findPreference(NOTIFY_SIGN_IN);
|
|
||||||
screenLock = (SwitchPreference) findPreference(PREF_SCREEN_LOCK);
|
screenLock = (SwitchPreference) findPreference(PREF_SCREEN_LOCK);
|
||||||
screenLockTimeout =
|
screenLockTimeout =
|
||||||
(ListPreference) findPreference(PREF_SCREEN_LOCK_TIMEOUT);
|
(ListPreference) findPreference(PREF_SCREEN_LOCK_TIMEOUT);
|
||||||
@@ -231,7 +228,6 @@ public class SettingsFragment extends PreferenceFragmentCompat
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
theme.setVisible(FEATURE_FLAG_DARK_THEME);
|
theme.setVisible(FEATURE_FLAG_DARK_THEME);
|
||||||
notifySignIn.setVisible(FEATURE_FLAG_SIGN_IN_REMINDER);
|
|
||||||
screenLock.setVisible(FEATURE_FLAG_PIN_LOCK);
|
screenLock.setVisible(FEATURE_FLAG_PIN_LOCK);
|
||||||
screenLockTimeout.setVisible(FEATURE_FLAG_PIN_LOCK);
|
screenLockTimeout.setVisible(FEATURE_FLAG_PIN_LOCK);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user