Final declarations, naming & redundant code

* add final declarations where missing
* fix typo "onSelectedLisener" to "onSelectedListener"
* rename "baseEqual" to "baseEquals"
* replace getPlaylistsObserver code with functions pointers
* remove duplicate code in constructors
* remove useless null checks
This commit is contained in:
Roy Yosef 2020-05-03 00:14:31 +03:00 committed by Stypox
parent dfc27b2480
commit 13c0fdef08
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23
7 changed files with 64 additions and 82 deletions

View file

@ -23,7 +23,9 @@
android:id="@+id/items_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:listitem="@layout/list_playlist_mini_item"></androidx.recyclerview.widget.RecyclerView>
tools:listitem="@layout/list_playlist_mini_item">
</androidx.recyclerview.widget.RecyclerView>
<TextView
@ -40,4 +42,4 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"/>
</LinearLayout>
</LinearLayout>