Skip to content

Commit

Permalink
Suggested mods switches are now disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopotediosi committed Mar 23, 2023
1 parent ecfd975 commit 0ce3cda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -167,6 +167,7 @@ public void refreshSwitchesStatus() {
mDBFlagsSingleton.areAllBooleanFlagsTrue(ENABLE_CALL_RECORDING_FLAGS)
);
mForceEnableCallRecordingSwitch.setOnCheckedChangeListener(mForceEnableCallRecordingSwitchOnCheckedChangeListener);
mForceEnableCallRecordingSwitch.setEnabled(true);

// mSilenceCallRecordingAlertsSwitch
if (fileSystemManager != null) {
Expand Down Expand Up @@ -217,6 +218,7 @@ public void refreshSwitchesStatus() {
mDBFlagsSingleton.areAllBooleanFlagsTrue(ENABLE_CALL_SCREEN_FLAGS) && mDBFlagsSingleton.areAllFlagsOverridden(CALL_SCREEN_I18N_CONFIG_FLAG)
);
mForceEnableCallScreenSwitch.setOnCheckedChangeListener(mForceEnableCallScreenSwitchOnCheckedChangeListener);
mForceEnableCallScreenSwitch.setEnabled(true);
}

private void forceEnableCallRecording(boolean enable) {
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/layout/suggested_mods_fragment.xml
Expand Up @@ -33,6 +33,7 @@
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:enabled="false"
android:minHeight="0dp"
tools:ignore="RtlHardcoded,TouchTargetSizeCheck,DuplicateSpeakableTextCheck" />
</RelativeLayout>
Expand Down Expand Up @@ -88,6 +89,7 @@
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:enabled="false"
android:minHeight="0dp"
tools:ignore="RtlHardcoded,TouchTargetSizeCheck" />
</RelativeLayout>
Expand Down

0 comments on commit 0ce3cda

Please sign in to comment.