Skip to content

Commit 668cdb7

Browse files
author
duy
committed
Refactor
1 parent 5195e2e commit 668cdb7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

modules/programming/src/main/java/com/symja/programming/document/MarkdownListDocumentFragment.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ class MarkdownListDocumentFragment : Fragment(), OnDocumentClickListener, IDocum
6161
listDocumentAdapter = MarkdownListDocumentAdapter(context, documentItems)
6262
listDocumentAdapter?.setOnDocumentClickListener(this)
6363

64-
val documentListView = view.findViewById<RecyclerView>(R.id.document_list_view)
64+
val documentListView = view.findViewById<RecyclerView>(R.id.symja_prgm_document_list_view)
6565
documentListView.setHasFixedSize(false)
6666
documentListView.isNestedScrollingEnabled = false
6767
documentListView.layoutManager = LinearLayoutManager(context)
6868
documentListView.adapter = listDocumentAdapter
69-
searchView = view.findViewById(R.id.edit_search_view)
69+
searchView = view.findViewById(R.id.symja_prgm_search_view)
7070
searchView?.addTextChangedListener(object : SimpleTextWatcher() {
7171
override fun afterTextChanged(s: Editable) {
7272
onQueryTextChange(s.toString())
@@ -83,10 +83,10 @@ class MarkdownListDocumentFragment : Fragment(), OnDocumentClickListener, IDocum
8383
viewFlipper?.setInAnimation(getContext(), android.R.anim.slide_in_left)
8484
viewFlipper?.setOutAnimation(getContext(), android.R.anim.slide_out_right)
8585

86-
documentNavigationContainer = view.findViewById(R.id.document_navigation_container)
86+
documentNavigationContainer = view.findViewById(R.id.symja_prgm_document_navigation_container)
8787
documentNavigationContainer?.isVisible = false;
8888

89-
documentNavigationView = view.findViewById(R.id.document_navigation_view)
89+
documentNavigationView = view.findViewById(R.id.symja_prgm_document_navigation_view)
9090
documentNavigationAdapter.setOnItemClickListener { position: Int, documentItem: DocumentItem ->
9191
switchToPosition(
9292
position,

modules/programming/src/main/res/layout/symja_prgm_fragment_programming_document.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
android:orientation="vertical">
88

99
<androidx.appcompat.widget.LinearLayoutCompat
10-
android:id="@+id/document_navigation_container"
10+
android:id="@+id/symja_prgm_document_navigation_container"
1111
android:layout_width="match_parent"
1212
android:layout_height="40dp"
1313
tools:visibility="visible">
1414

1515
<androidx.recyclerview.widget.RecyclerView
16-
android:id="@+id/document_navigation_view"
16+
android:id="@+id/symja_prgm_document_navigation_view"
1717
android:layout_width="match_parent"
1818
android:layout_height="match_parent"
1919
android:orientation="horizontal"
@@ -36,7 +36,7 @@
3636

3737

3838
<androidx.appcompat.widget.AppCompatEditText
39-
android:id="@+id/edit_search_view"
39+
android:id="@+id/symja_prgm_search_view"
4040
android:layout_width="match_parent"
4141
android:layout_height="wrap_content"
4242
android:background="@null"
@@ -52,7 +52,7 @@
5252
android:layout_height="1dp" />
5353

5454
<com.simplecityapps.recyclerview_fastscroll.views.FastScrollRecyclerView
55-
android:id="@+id/document_list_view"
55+
android:id="@+id/symja_prgm_document_list_view"
5656
android:layout_width="match_parent"
5757
android:layout_height="match_parent"
5858
android:orientation="vertical"

0 commit comments

Comments
 (0)