update commons to 5.16.12

This commit is contained in:
tibbi 2019-08-19 22:31:58 +02:00
parent 8ecf7419e2
commit afd4ee00b6
11 changed files with 18 additions and 20 deletions

View File

@ -51,7 +51,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.simplemobiletools:commons:5.15.9' implementation 'com.simplemobiletools:commons:5.16.12'
kapt 'androidx.room:room-compiler:2.1.0' kapt 'androidx.room:room-compiler:2.1.0'
implementation 'androidx.room:room-runtime:2.1.0' implementation 'androidx.room:room-runtime:2.1.0'

View File

@ -341,7 +341,8 @@ class MainActivity : SimpleActivity() {
FAQItem(R.string.faq_1_title_commons, R.string.faq_1_text_commons), FAQItem(R.string.faq_1_title_commons, R.string.faq_1_text_commons),
FAQItem(R.string.faq_4_title_commons, R.string.faq_4_text_commons), FAQItem(R.string.faq_4_title_commons, R.string.faq_4_text_commons),
FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons), FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons),
FAQItem(R.string.faq_6_title_commons, R.string.faq_6_text_commons) FAQItem(R.string.faq_6_title_commons, R.string.faq_6_text_commons),
FAQItem(R.string.faq_7_title_commons, R.string.faq_7_text_commons)
) )
startAboutActivity(R.string.app_name, licenses, BuildConfig.VERSION_NAME, faqItems, true) startAboutActivity(R.string.app_name, licenses, BuildConfig.VERSION_NAME, faqItems, true)

View File

@ -5,8 +5,6 @@ import com.simplemobiletools.commons.activities.BaseSplashActivity
import com.simplemobiletools.notes.pro.helpers.OPEN_NOTE_ID import com.simplemobiletools.notes.pro.helpers.OPEN_NOTE_ID
class SplashActivity : BaseSplashActivity() { class SplashActivity : BaseSplashActivity() {
override fun getAppPackageName() = packageName
override fun initActivity() { override fun initActivity() {
if (intent.extras?.containsKey(OPEN_NOTE_ID) == true) { if (intent.extras?.containsKey(OPEN_NOTE_ID) == true) {
Intent(this, MainActivity::class.java).apply { Intent(this, MainActivity::class.java).apply {

View File

@ -73,8 +73,8 @@ class ChecklistAdapter(activity: BaseSimpleActivity, var items: ArrayList<Checkl
private fun initDrawables() { private fun initDrawables() {
val res = activity.resources val res = activity.resources
crossDrawable = res.getColoredDrawableWithColor(R.drawable.ic_cross_big, res.getColor(R.color.theme_dark_red_primary_color)) crossDrawable = res.getColoredDrawableWithColor(R.drawable.ic_cross_vector, res.getColor(R.color.theme_dark_red_primary_color))
checkDrawable = res.getColoredDrawableWithColor(R.drawable.ic_check_big, res.getColor(R.color.md_green_700)) checkDrawable = res.getColoredDrawableWithColor(R.drawable.ic_check_vector, res.getColor(R.color.md_green_700))
} }
private fun renameChecklistItem() { private fun renameChecklistItem() {

View File

@ -57,7 +57,7 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
} }
private fun setupFragment() { private fun setupFragment() {
val plusIcon = resources.getColoredDrawableWithColor(R.drawable.ic_plus, if (context!!.isBlackAndWhiteTheme()) Color.BLACK else Color.WHITE) val plusIcon = resources.getColoredDrawableWithColor(R.drawable.ic_plus_vector, if (context!!.isBlackAndWhiteTheme()) Color.BLACK else Color.WHITE)
view.apply { view.apply {
checklist_fab.apply { checklist_fab.apply {
setImageDrawable(plusIcon) setImageDrawable(plusIcon)

View File

@ -52,6 +52,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom|end" android:layout_gravity="bottom|end"
android:layout_margin="@dimen/activity_margin" android:layout_margin="@dimen/activity_margin"
android:src="@drawable/ic_plus"/> android:src="@drawable/ic_plus_vector"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@ -30,6 +30,6 @@
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:padding="@dimen/normal_margin" android:padding="@dimen/normal_margin"
android:src="@drawable/ic_cross_big"/> android:src="@drawable/ic_cross_vector"/>
</RelativeLayout> </RelativeLayout>

View File

@ -17,10 +17,8 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginEnd="@dimen/small_margin" android:layout_marginEnd="@dimen/small_margin"
android:layout_marginRight="@dimen/small_margin"
android:padding="@dimen/small_margin" android:padding="@dimen/small_margin"
android:src="@drawable/ic_attach_file"/> android:src="@drawable/ic_attach_file_vector"/>
</RelativeLayout> </RelativeLayout>

View File

@ -8,7 +8,7 @@
app:showAsAction="ifRoom"/> app:showAsAction="ifRoom"/>
<item <item
android:id="@+id/cab_delete" android:id="@+id/cab_delete"
android:icon="@drawable/ic_delete" android:icon="@drawable/ic_delete_vector"
android:title="@string/delete" android:title="@string/delete"
app:showAsAction="ifRoom"/> app:showAsAction="ifRoom"/>
</menu> </menu>

View File

@ -3,27 +3,27 @@
xmlns:app="http://schemas.android.com/apk/res-auto"> xmlns:app="http://schemas.android.com/apk/res-auto">
<item <item
android:id="@+id/save_note" android:id="@+id/save_note"
android:icon="@drawable/ic_save" android:icon="@drawable/ic_save_vector"
android:title="@string/save" android:title="@string/save"
app:showAsAction="ifRoom"/> app:showAsAction="ifRoom"/>
<item <item
android:id="@+id/undo" android:id="@+id/undo"
android:icon="@drawable/ic_undo" android:icon="@drawable/ic_undo_vector"
android:title="@string/undo" android:title="@string/undo"
app:showAsAction="ifRoom"/> app:showAsAction="ifRoom"/>
<item <item
android:id="@+id/redo" android:id="@+id/redo"
android:icon="@drawable/ic_redo" android:icon="@drawable/ic_redo_vector"
android:title="@string/redo" android:title="@string/redo"
app:showAsAction="ifRoom"/> app:showAsAction="ifRoom"/>
<item <item
android:id="@+id/open_note" android:id="@+id/open_note"
android:icon="@drawable/ic_open" android:icon="@drawable/ic_folder_open_vector"
android:title="@string/open_note" android:title="@string/open_note"
app:showAsAction="ifRoom"/> app:showAsAction="ifRoom"/>
<item <item
android:id="@+id/new_note" android:id="@+id/new_note"
android:icon="@drawable/ic_plus" android:icon="@drawable/ic_plus_vector"
android:title="@string/new_note" android:title="@string/new_note"
app:showAsAction="ifRoom"/> app:showAsAction="ifRoom"/>
<item <item
@ -33,7 +33,7 @@
app:showAsAction="ifRoom"/> app:showAsAction="ifRoom"/>
<item <item
android:id="@+id/share" android:id="@+id/share"
android:icon="@drawable/ic_share" android:icon="@drawable/ic_share_vector"
android:title="@string/share" android:title="@string/share"
app:showAsAction="ifRoom"/> app:showAsAction="ifRoom"/>
<item <item
@ -54,7 +54,7 @@
app:showAsAction="never"/> app:showAsAction="never"/>
<item <item
android:id="@+id/delete_note" android:id="@+id/delete_note"
android:icon="@drawable/ic_delete" android:icon="@drawable/ic_delete_vector"
android:title="@string/delete_note" android:title="@string/delete_note"
app:showAsAction="ifRoom"/> app:showAsAction="ifRoom"/>
<item <item

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<string name="package_name">com.simplemobiletools.notes.pro</string>
<!-- Release notes --> <!-- Release notes -->
<string name="release_62">Allow customizing the bottom navigation bar color</string> <string name="release_62">Allow customizing the bottom navigation bar color</string>