feat: swap note button icon
This commit is contained in:
@@ -867,7 +867,6 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
|
||||
}
|
||||
boolean canAddNote = noteWrap.getVisibility()==View.GONE && (relationship.note==null || relationship.note.isEmpty());
|
||||
menu.findItem(R.id.edit_note).setTitle(canAddNote ? R.string.sk_add_note : R.string.sk_delete_note);
|
||||
menu.findItem(R.id.edit_note).setIcon(canAddNote ? R.drawable.ic_fluent_person_note_24_regular : R.drawable.ic_fluent_person_delete_note_24_regular);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M5.754,22.005C4.511,22.004 3.504,20.997 3.504,19.755L3.502,5.75C3.502,4.508 4.509,3.5 5.752,3.5L6.499,3.499L6.5,2.75C6.5,2.37 6.782,2.057 7.148,2.007L7.25,2C7.63,2 7.944,2.282 7.993,2.648L8,2.75L7.999,3.499H11.001L11.002,2.75C11.002,2.37 11.284,2.057 11.65,2.007L11.752,2C12.132,2 12.445,2.282 12.495,2.648L12.502,2.75L12.501,3.499H15.499L15.5,2.75C15.5,2.37 15.782,2.057 16.148,2.007L16.25,2C16.63,2 16.944,2.282 16.993,2.648L17,2.75L16.999,3.499L17.749,3.5C18.991,3.5 19.998,4.507 19.999,5.75L20,16.75C20,16.809 19.993,16.868 19.979,16.925L19.95,17.019L19.905,17.115L19.885,17.147C19.856,17.195 19.821,17.24 19.78,17.28L15.276,21.785C15.249,21.811 15.221,21.836 15.191,21.858L15.276,21.785C15.243,21.817 15.208,21.846 15.171,21.872L15.083,21.924L14.967,21.971L14.854,21.997L14.8,22.003L14.745,22.005H5.754ZM17.748,5H5.742C5.333,5.005 5.002,5.339 5.002,5.75L5.004,19.754C5.004,20.169 5.34,20.505 5.754,20.505L13.994,20.504L13.995,18.25C13.995,17.059 14.92,16.084 16.091,16.005L16.245,16H18.499L18.499,5.75C18.499,5.336 18.163,5 17.748,5ZM17.438,17.5H16.245C15.866,17.5 15.552,17.782 15.502,18.148L15.495,18.25L15.494,19.444L17.438,17.5ZM7.25,16H11.248C11.663,16 11.998,16.336 11.998,16.75C11.998,17.13 11.716,17.444 11.35,17.493L11.248,17.5H7.25C6.836,17.5 6.5,17.164 6.5,16.75C6.5,16.37 6.782,16.056 7.148,16.007L7.25,16H11.248H7.25ZM7.25,12H16.248C16.663,12 16.998,12.336 16.998,12.75C16.998,13.13 16.716,13.443 16.35,13.493L16.248,13.5H7.25C6.836,13.5 6.5,13.164 6.5,12.75C6.5,12.37 6.782,12.057 7.148,12.007L7.25,12H16.248H7.25ZM7.25,8H16.248C16.663,8 16.998,8.336 16.998,8.75C16.998,9.13 16.716,9.443 16.35,9.493L16.248,9.5H7.25C6.836,9.5 6.5,9.164 6.5,8.75C6.5,8.37 6.782,8.057 7.148,8.007L7.25,8H16.248H7.25Z"
|
||||
android:fillColor="@color/fluent_default_icon_tint"/>
|
||||
</vector>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<group android:id="@+id/menu_group1">
|
||||
<item android:id="@+id/edit_note" android:title="@string/sk_add_note" android:icon="@drawable/ic_fluent_person_note_24_regular" android:showAsAction="ifRoom" />
|
||||
<item android:id="@+id/edit_note" android:title="@string/sk_add_note" android:icon="@drawable/ic_fluent_notepad_24_regular" android:showAsAction="ifRoom" />
|
||||
</group>
|
||||
<group android:id="@+id/menu_group2">
|
||||
<item android:id="@+id/manage_user_lists" android:title="@string/sk_lists_with_user" android:icon="@drawable/ic_fluent_people_24_regular"/>
|
||||
|
||||
Reference in New Issue
Block a user