Skip to content
Snippets Groups Projects
Commit a7faf61c authored by Taras's avatar Taras
Browse files

Add ignored users to settings

parent 1a8f94b6
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,7 @@ class SettingsFragment : Fragment(R.layout.fragment_settings) { ...@@ -76,6 +76,7 @@ class SettingsFragment : Fragment(R.layout.fragment_settings) {
tvVersion.setOnLongClickListener { toggleDeveloperMode(); true } tvVersion.setOnLongClickListener { toggleDeveloperMode(); true }
tvPushNotifications.setOnClickListener { navigator.navigateToPushSettings() } tvPushNotifications.setOnClickListener { navigator.navigateToPushSettings() }
ivShareProfile.setOnClickListener { navigator.navigateToShareProfile(viewModel.getSharedCircleSpaceId()) } ivShareProfile.setOnClickListener { navigator.navigateToShareProfile(viewModel.getSharedCircleSpaceId()) }
tvIgnoredUsers.setOnClickListener { navigator.navigateToIgnoredUsers() }
} }
setVersion() setVersion()
} }
......
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="@color/menu_icon_color"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@android:color/white"
android:pathData="M8.65,5.82C9.36,4.72 10.6,4 12,4c2.21,0 4,1.79 4,4c0,1.4 -0.72,2.64 -1.82,3.35L8.65,5.82zM20,17.17c-0.02,-1.1 -0.63,-2.11 -1.61,-2.62c-0.54,-0.28 -1.13,-0.54 -1.77,-0.76L20,17.17zM21.19,21.19L2.81,2.81L1.39,4.22l8.89,8.89c-1.81,0.23 -3.39,0.79 -4.67,1.45C4.61,15.07 4,16.1 4,17.22V20h13.17l2.61,2.61L21.19,21.19z" />
</vector>
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
android:id="@+id/tvIgnore" android:id="@+id/tvIgnore"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:optionIcon="@drawable/ic_notifications_off" app:optionIcon="@drawable/ic_ignore"
app:optionName="@string/ignore_sender" /> app:optionName="@string/ignore_sender" />
<org.futo.circles.core.view.SettingsMenuItemView <org.futo.circles.core.view.SettingsMenuItemView
......
...@@ -131,9 +131,7 @@ ...@@ -131,9 +131,7 @@
android:id="@+id/lMediaStorage" android:id="@+id/lMediaStorage"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical">
android:visibility="gone"
tools:visibility="visible">
<TextView <TextView
style="@style/settingMenuHeader" style="@style/settingMenuHeader"
...@@ -156,7 +154,6 @@ ...@@ -156,7 +154,6 @@
android:layout_marginStart="16dp" android:layout_marginStart="16dp"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:gravity="center" android:gravity="center"
android:paddingBottom="4dp"
android:textSize="13sp" android:textSize="13sp"
app:layout_constraintBottom_toBottomOf="@id/ivProfile" app:layout_constraintBottom_toBottomOf="@id/ivProfile"
app:layout_constraintEnd_toEndOf="@id/ivEditProfile" app:layout_constraintEnd_toEndOf="@id/ivEditProfile"
...@@ -164,50 +161,48 @@ ...@@ -164,50 +161,48 @@
app:layout_constraintTop_toBottomOf="@id/ivEditProfile" app:layout_constraintTop_toBottomOf="@id/ivEditProfile"
tools:text="7 GB of 15 GB used" /> tools:text="7 GB of 15 GB used" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/divider_height"
android:layout_marginTop="8dp"
android:background="@color/divider_color" />
</LinearLayout> </LinearLayout>
<TextView <TextView
style="@style/settingMenuHeader" style="@style/settingMenuHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/notifications" /> android:text="@string/general" />
<org.futo.circles.core.view.SettingsMenuItemView <org.futo.circles.core.view.SettingsMenuItemView
android:id="@+id/tvPushNotifications" android:id="@+id/tvPushNotifications"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:hasDivider="false"
app:optionIcon="@drawable/ic_notifications" app:optionIcon="@drawable/ic_notifications"
app:optionName="@string/push_notifications" /> app:optionName="@string/push_notifications" />
<TextView
style="@style/settingMenuHeader"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/session" />
<org.futo.circles.core.view.SettingsMenuItemView <org.futo.circles.core.view.SettingsMenuItemView
android:id="@+id/tvLoginSessions" android:id="@+id/tvLoginSessions"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:optionIcon="@drawable/ic_phone" app:optionIcon="@drawable/ic_phone"
app:optionName="@string/login_sessions" /> app:optionName="@string/login_sessions" />
<org.futo.circles.core.view.SettingsMenuItemView <org.futo.circles.core.view.SettingsMenuItemView
android:id="@+id/tvSwitchUser" android:id="@+id/tvIgnoredUsers"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:optionIcon="@drawable/ic_switch_user" app:optionIcon="@drawable/ic_ignore"
app:optionName="@string/switch_user" /> app:optionName="@string/ignored_users" />
<org.futo.circles.core.view.SettingsMenuItemView <org.futo.circles.core.view.SettingsMenuItemView
android:id="@+id/tvLogout" android:id="@+id/tvManageSubscription"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:hasDivider="false" app:hasDivider="false"
app:optionIcon="@drawable/ic_logout" app:optionIcon="@drawable/ic_payment"
app:optionName="@string/log_out" /> app:optionName="@string/manage_subscription" />
<TextView <TextView
...@@ -216,12 +211,6 @@ ...@@ -216,12 +211,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/account" /> android:text="@string/account" />
<org.futo.circles.core.view.SettingsMenuItemView
android:id="@+id/tvManageSubscription"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:optionIcon="@drawable/ic_payment"
app:optionName="@string/manage_subscription" />
<org.futo.circles.core.view.SettingsMenuItemView <org.futo.circles.core.view.SettingsMenuItemView
android:id="@+id/tvChangePassword" android:id="@+id/tvChangePassword"
...@@ -230,6 +219,19 @@ ...@@ -230,6 +219,19 @@
app:optionIcon="@drawable/ic_lock" app:optionIcon="@drawable/ic_lock"
app:optionName="@string/change_password" /> app:optionName="@string/change_password" />
<org.futo.circles.core.view.SettingsMenuItemView
android:id="@+id/tvSwitchUser"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:optionIcon="@drawable/ic_switch_user"
app:optionName="@string/switch_user" />
<org.futo.circles.core.view.SettingsMenuItemView
android:id="@+id/tvLogout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:optionIcon="@drawable/ic_logout"
app:optionName="@string/log_out" />
<TextView <TextView
android:id="@+id/tvDeactivate" android:id="@+id/tvDeactivate"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<item <item
android:id="@+id/ignore" android:id="@+id/ignore"
android:icon="@drawable/ic_notifications_off" android:icon="@drawable/ic_ignore"
android:title="@string/ignore" /> android:title="@string/ignore" />
<item <item
......
...@@ -225,6 +225,7 @@ ...@@ -225,6 +225,7 @@
<string name="rich_text_editor_unindent">Unindent</string> <string name="rich_text_editor_unindent">Unindent</string>
<string name="rich_text_editor_quote">Toggle quote</string> <string name="rich_text_editor_quote">Toggle quote</string>
<string name="rich_text_editor_code_block">Toggle code block</string> <string name="rich_text_editor_code_block">Toggle code block</string>
<string name="general">General</string>
<string-array name="report_categories"> <string-array name="report_categories">
<item>@string/crude_language</item> <item>@string/crude_language</item>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment