-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace hardcoded error message with real one
- Loading branch information
1 parent
100e988
commit 8b4f5f7
Showing
3 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
WooCommerce/src/main/kotlin/com/woocommerce/android/util/UiStringParser.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.woocommerce.android.util | ||
|
||
import android.content.Context | ||
import com.woocommerce.android.model.UiString | ||
import com.woocommerce.android.util.UiHelpers.getTextOfUiString | ||
import javax.inject.Inject | ||
|
||
class UiStringParser @Inject constructor( | ||
private val context: Context | ||
) { | ||
fun asString(uiString: UiString): String = getTextOfUiString(context, uiString) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters