Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Remove unused strings

Cette révision appartient à :
len 2016-04-10 17:49:48 +02:00
Parent 81d39ea272
révision b27669ee32
3 fichiers modifiés avec 4 ajouts et 10 suppressions

Voir le fichier

@ -82,7 +82,7 @@ class CategoryActivity : BaseRxActivity<CategoryPresenter>(), ActionMode.Callbac
fab.setOnClickListener({ v -> fab.setOnClickListener({ v ->
MaterialDialog.Builder(this) MaterialDialog.Builder(this)
.title(R.string.action_add_category) .title(R.string.action_add_category)
.negativeText(R.string.button_cancel) .negativeText(android.R.string.cancel)
.input(R.string.name, 0, false) .input(R.string.name, 0, false)
{ dialog, input -> presenter.createCategory(input.toString()) } { dialog, input -> presenter.createCategory(input.toString()) }
.show() .show()
@ -125,7 +125,7 @@ class CategoryActivity : BaseRxActivity<CategoryPresenter>(), ActionMode.Callbac
private fun editCategory(category: Category) { private fun editCategory(category: Category) {
MaterialDialog.Builder(this) MaterialDialog.Builder(this)
.title(R.string.action_rename_category) .title(R.string.action_rename_category)
.negativeText(R.string.button_cancel) .negativeText(android.R.string.cancel)
.onNegative { materialDialog, dialogAction -> destroyActionModeIfNeeded() } .onNegative { materialDialog, dialogAction -> destroyActionModeIfNeeded() }
.input(getString(R.string.name), category.name, false) .input(getString(R.string.name), category.name, false)
{ dialog, input -> presenter.renameCategory(category, input.toString()) } { dialog, input -> presenter.renameCategory(category, input.toString()) }

Voir le fichier

@ -85,8 +85,8 @@ class SettingsAdvancedFragment : SettingsNestedFragment() {
private fun clearDatabase() { private fun clearDatabase() {
MaterialDialog.Builder(activity) MaterialDialog.Builder(activity)
.content(R.string.clear_database_confirmation) .content(R.string.clear_database_confirmation)
.positiveText(R.string.button_yes) .positiveText(android.R.string.yes)
.negativeText(R.string.button_no) .negativeText(android.R.string.no)
.onPositive { dialog, which -> db.deleteMangasNotInLibrary().executeAsBlocking() } .onPositive { dialog, which -> db.deleteMangasNotInLibrary().executeAsBlocking() }
.show() .show()
} }

Voir le fichier

@ -51,12 +51,6 @@
<string name="action_cancel">Cancel</string> <string name="action_cancel">Cancel</string>
<string name="action_sort">Sort</string> <string name="action_sort">Sort</string>
<!-- Buttons -->
<string name="button_ok">OK</string>
<string name="button_cancel">Cancel</string>
<string name="button_yes">Yes</string>
<string name="button_no">No</string>
<!-- Operations --> <!-- Operations -->
<string name="deleting">Deleting…</string> <string name="deleting">Deleting…</string>
<string name="loading">Loading…</string> <string name="loading">Loading…</string>