remove orbot stuff
parent
347eea9fe4
commit
a63347cbbf
|
@ -75,7 +75,6 @@ class DashboardFragment : NavToolbarFragment(R.layout.fragment_dashboard) {
|
||||||
|
|
||||||
binding.trackersControl.title.setText(R.string.dashboard_trackers_title)
|
binding.trackersControl.title.setText(R.string.dashboard_trackers_title)
|
||||||
binding.fakeLocation.title.setText(R.string.dashboard_location_title)
|
binding.fakeLocation.title.setText(R.string.dashboard_location_title)
|
||||||
binding.ipScrambling.title.setText(R.string.dashboard_ipscrambling_title)
|
|
||||||
|
|
||||||
setOnClickListeners()
|
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 {
|
binding.appsPermissions.setOnClickListener {
|
||||||
viewModel.onClickAppsPermissions()
|
viewModel.onClickAppsPermissions()
|
||||||
}
|
}
|
||||||
|
@ -193,24 +182,6 @@ class DashboardFragment : NavToolbarFragment(R.layout.fragment_dashboard) {
|
||||||
stateLabel.setTextColor(getStateColor(state.isLocationHidden))
|
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 {
|
private fun getStateColor(isActive: Boolean): Int {
|
||||||
|
|
|
@ -96,10 +96,6 @@
|
||||||
layout="@layout/dashboard_item_submenu_button"
|
layout="@layout/dashboard_item_submenu_button"
|
||||||
android:id="@+id/fake_location"
|
android:id="@+id/fake_location"
|
||||||
/>
|
/>
|
||||||
<include
|
|
||||||
layout="@layout/dashboard_item_submenu_button"
|
|
||||||
android:id="@+id/ip_scrambling"
|
|
||||||
/>
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/apps_permissions"
|
android:id="@+id/apps_permissions"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
Loading…
Reference in New Issue