remove orbot stuff

master
harvey186 2024-01-29 17:34:15 +01:00
parent 347eea9fe4
commit a63347cbbf
2 changed files with 0 additions and 33 deletions

View File

@ -75,7 +75,6 @@ class DashboardFragment : NavToolbarFragment(R.layout.fragment_dashboard) {
binding.trackersControl.title.setText(R.string.dashboard_trackers_title)
binding.fakeLocation.title.setText(R.string.dashboard_location_title)
binding.ipScrambling.title.setText(R.string.dashboard_ipscrambling_title)
setOnClickListeners()
@ -107,16 +106,6 @@ class DashboardFragment : NavToolbarFragment(R.layout.fragment_dashboard) {
}
}
with(binding.ipScrambling) {
root.setOnClickListener {
viewModel.onClickIpScrambling()
}
switchFeature.setOnCheckedChangeListener { _, isChecked ->
viewModel.onClickToggleIpScrambling(isChecked)
}
}
binding.appsPermissions.setOnClickListener {
viewModel.onClickAppsPermissions()
}
@ -193,24 +182,6 @@ class DashboardFragment : NavToolbarFragment(R.layout.fragment_dashboard) {
stateLabel.setTextColor(getStateColor(state.isLocationHidden))
}
with(binding.ipScrambling) {
switchFeature.isChecked = state.ipScramblingMode.isChecked
val isLoading = state.ipScramblingMode.isLoading
switchFeature.isEnabled = (state.ipScramblingMode != FeatureState.STOPPING)
stateLoader.isVisible = isLoading
stateLabel.visibility = if (!isLoading) View.VISIBLE else View.INVISIBLE
stateLabel.setText(
if (state.ipScramblingMode == FeatureState.ON) {
R.string.dashboard_state_ipaddress_on
} else {
R.string.dashboard_state_ipaddress_off
}
)
stateLabel.setTextColor(getStateColor(state.ipScramblingMode == FeatureState.ON))
}
}
private fun getStateColor(isActive: Boolean): Int {

View File

@ -96,10 +96,6 @@
layout="@layout/dashboard_item_submenu_button"
android:id="@+id/fake_location"
/>
<include
layout="@layout/dashboard_item_submenu_button"
android:id="@+id/ip_scrambling"
/>
<LinearLayout
android:id="@+id/apps_permissions"
android:layout_width="match_parent"