File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
app/src/main/java/it/niedermann/owncloud/notes/util Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,18 @@ import androidx.core.net.toUri
1515import com.owncloud.android.lib.common.utils.Log_OC
1616import java.util.Locale
1717
18+ /* *
19+ * Helper class for opening Nextcloud apps if present
20+ * or falling back to opening the app store
21+ * in case the app is not yet installed on the device.
22+ */
1823object LinkHelper {
1924 const val APP_NEXTCLOUD_FILES = " com.nextcloud.client"
2025 const val APP_NEXTCLOUD_NOTES = " it.niedermann.owncloud.notes"
2126 const val APP_NEXTCLOUD_TALK = " com.nextcloud.talk2"
2227 const val KEY_ACCOUNT : String = " KEY_ACCOUNT"
2328 private const val TAG = " LinkHelper"
2429
25- fun isHttpOrHttpsLink (link : String? ): Boolean =
26- link?.lowercase(Locale .getDefault())?.let {
27- it.startsWith(" http://" ) || it.startsWith(" https://" )
28- } == true
29-
3030 /* *
3131 * Open specified app and, if not installed redirect to corresponding download.
3232 *
You can’t perform that action at this time.
0 commit comments