Skip to content
Snippets Groups Projects
Commit ea26327a authored by Taras's avatar Taras
Browse files

Add open url extension

parent 46e48ff2
No related branches found
No related tags found
No related merge requests found
package com.futo.circles.extensions
import android.annotation.SuppressLint
import android.content.Intent
import android.graphics.Color
import android.net.Uri
import android.view.Gravity
import android.view.ViewGroup
import android.widget.FrameLayout
......@@ -82,4 +84,8 @@ fun Fragment.showInfoDialog(@StringRes titleResIdRes: Int, @StringRes messageRes
}
.show()
}
}
fun Fragment.openUrl(url: String) {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(url)))
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment