@@ -15,12 +15,12 @@ import android.content.Intent
1515import android.net.Uri
1616import android.os.Build
1717import android.os.Parcel
18- import android.os.Parcelable.Creator
1918import android.text.Html
2019import androidx.annotation.StringRes
2120import com.omega_r.libs.omegaintentbuilder.builders.BaseUriBuilder
2221import com.omega_r.libs.omegatypes.Text
2322import com.omega_r.libs.omegatypes.toText
23+ import java.io.Serializable
2424
2525@Suppress(" UNCHECKED_CAST" )
2626abstract class BaseShareBuilder <T > : BaseUriBuilder {
@@ -144,8 +144,8 @@ abstract class BaseShareBuilder<T> : BaseUriBuilder {
144144 * @param formatArgs The format arguments that will be used for substitution.
145145 * @return This BaseShareBuilder for method chaining
146146 */
147- fun subject (@StringRes subjectRes : Int , vararg formatArgs : Any ): T {
148- this .subject = Text .from(subjectRes, * formatArgs)
147+ fun subject (@StringRes subjectRes : Int , vararg formatArgs : Serializable ): T {
148+ this .subject = Text .from(stringRes = subjectRes, formatArgs = formatArgs)
149149 return this as T
150150 }
151151
@@ -184,8 +184,8 @@ abstract class BaseShareBuilder<T> : BaseUriBuilder {
184184 * @return This BaseShareBuilder for method chaining
185185 * @see Intent#EXTRA_TEXT
186186 */
187- fun text (@StringRes textRes : Int , vararg formatArgs : Any ): T {
188- this .text = Text .from(textRes, * formatArgs)
187+ fun text (@StringRes textRes : Int , vararg formatArgs : Serializable ): T {
188+ this .text = Text .from(stringRes = textRes, formatArgs = formatArgs)
189189 return this as T
190190 }
191191
0 commit comments