upgrade gecko
This commit is contained in:
@@ -3,7 +3,7 @@ version = "1.0-SNAPSHOT"
|
|||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
ext.kotlin_version = "2.1.20"
|
ext.kotlin_version = "2.1.20"
|
||||||
ext.mozillaComponentsVersion = '144.0.2'
|
ext.mozillaComponentsVersion = '145.0'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
|||||||
+7
-8
@@ -21,7 +21,6 @@ import mozilla.components.feature.addons.AddonManagerException
|
|||||||
import mozilla.components.feature.addons.ui.translateName
|
import mozilla.components.feature.addons.ui.translateName
|
||||||
import mozilla.components.support.utils.ext.getParcelableExtraCompat
|
import mozilla.components.support.utils.ext.getParcelableExtraCompat
|
||||||
import eu.weblibre.flutter_mozilla_components.R
|
import eu.weblibre.flutter_mozilla_components.R
|
||||||
import mozilla.components.feature.addons.R as MozComp
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An activity to show the details of a installed add-on.
|
* An activity to show the details of a installed add-on.
|
||||||
@@ -62,7 +61,7 @@ class InstalledAddonDetailsActivity : AppCompatActivity() {
|
|||||||
scope.launch(Dispatchers.Main) {
|
scope.launch(Dispatchers.Main) {
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
baseContext,
|
baseContext,
|
||||||
MozComp.string.mozac_feature_addons_failed_to_query_extensions,
|
R.string.mozac_feature_addons_failed_to_query_extensions,
|
||||||
Toast.LENGTH_SHORT,
|
Toast.LENGTH_SHORT,
|
||||||
).show()
|
).show()
|
||||||
}
|
}
|
||||||
@@ -97,14 +96,14 @@ class InstalledAddonDetailsActivity : AppCompatActivity() {
|
|||||||
switch.setState(true)
|
switch.setState(true)
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
this,
|
this,
|
||||||
getString(MozComp.string.mozac_feature_addons_successfully_enabled, addon.translateName(this)),
|
getString(R.string.mozac_feature_addons_successfully_enabled, addon.translateName(this)),
|
||||||
Toast.LENGTH_SHORT,
|
Toast.LENGTH_SHORT,
|
||||||
).show()
|
).show()
|
||||||
},
|
},
|
||||||
onError = {
|
onError = {
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
this,
|
this,
|
||||||
getString(MozComp.string.mozac_feature_addons_failed_to_enable, addon.translateName(this)),
|
getString(R.string.mozac_feature_addons_failed_to_enable, addon.translateName(this)),
|
||||||
Toast.LENGTH_SHORT,
|
Toast.LENGTH_SHORT,
|
||||||
).show()
|
).show()
|
||||||
},
|
},
|
||||||
@@ -116,14 +115,14 @@ class InstalledAddonDetailsActivity : AppCompatActivity() {
|
|||||||
switch.setState(false)
|
switch.setState(false)
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
this,
|
this,
|
||||||
getString(MozComp.string.mozac_feature_addons_successfully_disabled, addon.translateName(this)),
|
getString(R.string.mozac_feature_addons_successfully_disabled, addon.translateName(this)),
|
||||||
Toast.LENGTH_SHORT,
|
Toast.LENGTH_SHORT,
|
||||||
).show()
|
).show()
|
||||||
},
|
},
|
||||||
onError = {
|
onError = {
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
this,
|
this,
|
||||||
getString(MozComp.string.mozac_feature_addons_failed_to_disable, addon.translateName(this)),
|
getString(R.string.mozac_feature_addons_failed_to_disable, addon.translateName(this)),
|
||||||
Toast.LENGTH_SHORT,
|
Toast.LENGTH_SHORT,
|
||||||
).show()
|
).show()
|
||||||
},
|
},
|
||||||
@@ -180,7 +179,7 @@ class InstalledAddonDetailsActivity : AppCompatActivity() {
|
|||||||
onSuccess = {
|
onSuccess = {
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
this,
|
this,
|
||||||
getString(MozComp.string.mozac_feature_addons_successfully_uninstalled, addon.translateName(this)),
|
getString(R.string.mozac_feature_addons_successfully_uninstalled, addon.translateName(this)),
|
||||||
Toast.LENGTH_SHORT,
|
Toast.LENGTH_SHORT,
|
||||||
).show()
|
).show()
|
||||||
finish()
|
finish()
|
||||||
@@ -188,7 +187,7 @@ class InstalledAddonDetailsActivity : AppCompatActivity() {
|
|||||||
onError = { _, _ ->
|
onError = { _, _ ->
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
this,
|
this,
|
||||||
getString(MozComp.string.mozac_feature_addons_failed_to_uninstall, addon.translateName(this)),
|
getString(R.string.mozac_feature_addons_failed_to_uninstall, addon.translateName(this)),
|
||||||
Toast.LENGTH_SHORT,
|
Toast.LENGTH_SHORT,
|
||||||
).show()
|
).show()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?><!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||||
|
<resources>
|
||||||
|
<!-- Text shown after successfully enabled an add-on. %1$s is the add-on name. -->
|
||||||
|
<string name="mozac_feature_addons_successfully_enabled" >Successfully enabled %1$s</string>
|
||||||
|
<!-- Text shown after failed to enable an add-on. %1$s is the add-on name. -->
|
||||||
|
<string name="mozac_feature_addons_failed_to_enable">Failed to enable %1$s</string>
|
||||||
|
<!-- Text shown after successfully disabled an add-on. %1$s is the add-on name. -->
|
||||||
|
<string name="mozac_feature_addons_successfully_disabled">Successfully disabled %1$s</string>
|
||||||
|
<!-- Text shown after failed to disable an add-on. %1$s is the add-on name. -->
|
||||||
|
<string name="mozac_feature_addons_failed_to_disable">Failed to disable %1$s</string>
|
||||||
|
<!-- Text shown after successfully uninstalled an add-on. %1$s is the add-on name. -->
|
||||||
|
<string name="mozac_feature_addons_successfully_uninstalled">Successfully uninstalled %1$s</string>
|
||||||
|
<!-- Text shown after failed to uninstall an add-on. %1$s is the add-on name. -->
|
||||||
|
<string name="mozac_feature_addons_failed_to_uninstall">Failed to uninstall %1$s</string>
|
||||||
|
<!-- Error shown when something unexpected happened while trying to get the extension list from the server -->
|
||||||
|
<string name="mozac_feature_addons_failed_to_query_extensions">Failed to query extensions!</string>
|
||||||
|
</resources>
|
||||||
Reference in New Issue
Block a user