Skip to content

Commit ba2cb16

Browse files
committed
use the viewpager from commons
1 parent f4b0a0e commit ba2cb16

File tree

3 files changed

+5
-40
lines changed

3 files changed

+5
-40
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@ import com.simplemobiletools.commons.extensions.toast
1313
import com.simplemobiletools.commons.extensions.value
1414
import com.simplemobiletools.commons.helpers.LICENSE_AMBILWARNA
1515
import com.simplemobiletools.commons.helpers.LICENSE_KOTLIN
16+
import com.simplemobiletools.commons.helpers.LICENSE_RTL
1617
import com.simplemobiletools.commons.helpers.LICENSE_STETHO
1718
import com.simplemobiletools.notes.BuildConfig
1819
import com.simplemobiletools.notes.R
19-
import com.simplemobiletools.notes.helpers.TYPE_NOTE
2020
import com.simplemobiletools.notes.adapters.NotesPagerAdapter
2121
import com.simplemobiletools.notes.databases.DBHelper
2222
import com.simplemobiletools.notes.dialogs.NewNoteDialog
2323
import com.simplemobiletools.notes.dialogs.OpenNoteDialog
2424
import com.simplemobiletools.notes.dialogs.RenameNoteDialog
2525
import com.simplemobiletools.notes.extensions.getTextSize
26+
import com.simplemobiletools.notes.helpers.TYPE_NOTE
2627
import com.simplemobiletools.notes.models.Note
2728
import kotlinx.android.synthetic.main.activity_main.*
2829
import kotlinx.android.synthetic.main.fragment_note.*
@@ -129,7 +130,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
129130
}
130131

131132
private fun launchAbout() {
132-
startAboutActivity(R.string.app_name, LICENSE_KOTLIN or LICENSE_AMBILWARNA or LICENSE_STETHO, BuildConfig.VERSION_NAME)
133+
startAboutActivity(R.string.app_name, LICENSE_KOTLIN or LICENSE_AMBILWARNA or LICENSE_STETHO or LICENSE_RTL, BuildConfig.VERSION_NAME)
133134
}
134135

135136
private fun displayDeleteNotePrompt() {

app/src/main/kotlin/com/simplemobiletools/notes/views/MyViewPager.kt

Lines changed: 0 additions & 36 deletions
This file was deleted.

app/src/main/res/layout/activity_main.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<com.simplemobiletools.notes.views.MyViewPager
2+
<com.simplemobiletools.commons.views.MyViewPager
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
android:id="@+id/view_pager"
55
android:layout_width="match_parent"
@@ -12,4 +12,4 @@
1212
android:layout_gravity="top"
1313
android:paddingLeft="@dimen/activity_margin"
1414
android:paddingRight="@dimen/activity_margin"/>
15-
</com.simplemobiletools.notes.views.MyViewPager>
15+
</com.simplemobiletools.commons.views.MyViewPager>

0 commit comments

Comments
 (0)