diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index ea556b0b..9e25b314 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -34,6 +34,7 @@
+
diff --git a/app/src/main/java/org/mian/gitnex/activities/OpenWebRepoActivity.java b/app/src/main/java/org/mian/gitnex/activities/OpenWebRepoActivity.java
new file mode 100644
index 00000000..3a431379
--- /dev/null
+++ b/app/src/main/java/org/mian/gitnex/activities/OpenWebRepoActivity.java
@@ -0,0 +1,29 @@
+package org.mian.gitnex.activities;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+/**
+ * Author 6543
+ */
+
+import android.view.View;
+import org.mian.gitnex.util.TinyDB;
+import android.content.Intent;
+import android.net.Uri;
+
+
+public class OpenWebRepoActivity extends AppCompatActivity implements View.OnClickListener {
+
+ @Override
+ public void onClick(View v) {
+ TinyDB tinyDb = new TinyDB(getApplicationContext());
+ String repoFullName = tinyDb.getString("repoFullName");
+ String instanceUrl = tinyDb.getString("instanceUrl");
+
+ String url = instanceUrl + "/" + repoFullName;
+ Intent i = new Intent(Intent.ACTION_VIEW);
+ i.setData(Uri.parse(url));
+ startActivity(i);
+
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/org/mian/gitnex/fragments/RepoBottomSheetFragment.java b/app/src/main/java/org/mian/gitnex/fragments/RepoBottomSheetFragment.java
index f1435fa9..efa9ab81 100644
--- a/app/src/main/java/org/mian/gitnex/fragments/RepoBottomSheetFragment.java
+++ b/app/src/main/java/org/mian/gitnex/fragments/RepoBottomSheetFragment.java
@@ -29,6 +29,7 @@ public class RepoBottomSheetFragment extends BottomSheetDialogFragment {
TextView createMilestone = v.findViewById(R.id.createNewMilestone);
TextView addCollaborator = v.findViewById(R.id.addCollaborator);
TextView createRelease = v.findViewById(R.id.createRelease);
+ TextView openWebRepo = v.findViewById(R.id.openWebRepo);
createLabel.setOnClickListener(new View.OnClickListener() {
@Override
@@ -70,6 +71,14 @@ public class RepoBottomSheetFragment extends BottomSheetDialogFragment {
}
});
+ openWebRepo.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ bmListener.onButtonClicked("openWebRepo");
+ dismiss();
+ }
+ });
+
return v;
}