diff --git a/app/src/main/java/org/mian/gitnex/adapters/ExploreRepositoriesAdapter.java b/app/src/main/java/org/mian/gitnex/adapters/ExploreRepositoriesAdapter.java index 9a2ec3b..b01cbb0 100644 --- a/app/src/main/java/org/mian/gitnex/adapters/ExploreRepositoriesAdapter.java +++ b/app/src/main/java/org/mian/gitnex/adapters/ExploreRepositoriesAdapter.java @@ -192,7 +192,7 @@ public class ExploreRepositoriesAdapter extends RecyclerView.Adapter { Context context = v.getContext(); Intent intent = new Intent(context, RepoDetailActivity.class); - intent.putExtra("repoFullName", fullNameMy.getText().toString()); + intent.putExtra("repoFullName", repoFullName.getText().toString()); TinyDB tinyDb = new TinyDB(context); - tinyDb.putString("repoFullName", fullNameMy.getText().toString()); + tinyDb.putString("repoFullName", repoFullName.getText().toString()); tinyDb.putString("repoType", repoType.getText().toString()); //tinyDb.putBoolean("resumeIssues", true); + tinyDb.putBoolean("isRepoAdmin", isRepoAdmin.isChecked()); //store if user is watching this repo { final String instanceUrl = tinyDb.getString("instanceUrl"); - String[] parts = fullNameMy.getText().toString().split("/"); + String[] parts = repoFullName.getText().toString().split("/"); final String repoOwner = parts[0]; final String repoName = parts[1]; final String token = "token " + tinyDb.getString(tinyDb.getString("loginUid") + "-token"); @@ -144,7 +148,7 @@ public class MyReposListAdapter extends RecyclerView.Adapter { Intent intentOpenInBrowser = new Intent(context, OpenRepoInBrowserActivity.class); - intentOpenInBrowser.putExtra("repoFullNameBrowser", fullNameMy.getText()); + intentOpenInBrowser.putExtra("repoFullNameBrowser", repoFullName.getText()); context.startActivity(intentOpenInBrowser); dialog.dismiss(); @@ -161,7 +165,7 @@ public class MyReposListAdapter extends RecyclerView.Adapter { Intent intent = new Intent(context, RepoStargazersActivity.class); - intent.putExtra("repoFullNameForStars", fullNameMy.getText()); + intent.putExtra("repoFullNameForStars", repoFullName.getText()); context.startActivity(intent); dialog.dismiss(); @@ -170,7 +174,7 @@ public class MyReposListAdapter extends RecyclerView.Adapter { Intent intentW = new Intent(context, RepoWatchersActivity.class); - intentW.putExtra("repoFullNameForWatchers", fullNameMy.getText()); + intentW.putExtra("repoFullNameForWatchers", repoFullName.getText()); context.startActivity(intentW); dialog.dismiss(); @@ -190,7 +194,7 @@ public class MyReposListAdapter extends RecyclerView.Adapter @@ -52,4 +51,4 @@ android:padding="@dimen/fab_padding" android:contentDescription="@string/addNewContent" /> - \ No newline at end of file + diff --git a/app/src/main/res/layout/list_my_repos.xml b/app/src/main/res/layout/list_my_repos.xml deleted file mode 100644 index 2fca274..0000000 --- a/app/src/main/res/layout/list_my_repos.xml +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/layout/list_repos.xml b/app/src/main/res/layout/list_repositories.xml similarity index 94% rename from app/src/main/res/layout/list_repos.xml rename to app/src/main/res/layout/list_repositories.xml index 748800b..469e3c3 100644 --- a/app/src/main/res/layout/list_repos.xml +++ b/app/src/main/res/layout/list_repositories.xml @@ -11,16 +11,12 @@ android:visibility="invisible" /> + android:layout_margin="15dp" + android:orientation="vertical"> @@ -95,18 +91,17 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="8dp" - android:layout_marginBottom="8dp" android:orientation="horizontal"> @@ -115,11 +110,11 @@ android:id="@+id/repoStars" android:layout_width="0dp" android:layout_height="20dp" + android:layout_gravity="center_vertical" android:layout_weight=".25" android:drawableStart="@drawable/ic_star" android:drawablePadding="6dp" android:gravity="center_vertical" - android:layout_gravity="center_vertical" android:text="@string/repoStars" android:textColor="?attr/primaryTextColor" android:textSize="14sp" /> @@ -128,11 +123,11 @@ android:id="@+id/repoForks" android:layout_width="0dp" android:layout_height="20dp" + android:layout_gravity="center_vertical" android:layout_weight=".25" android:drawableStart="@drawable/ic_forks_24" android:drawablePadding="6dp" android:gravity="center_vertical" - android:layout_gravity="center_vertical" android:text="@string/repoWatchers" android:textColor="?attr/primaryTextColor" android:textSize="14sp" /> @@ -140,12 +135,12 @@ + android:src="@drawable/ic_dotted_menu_horizontal" /> diff --git a/app/src/main/res/layout/list_repositories_by_org.xml b/app/src/main/res/layout/list_repositories_by_org.xml deleted file mode 100644 index c008fac..0000000 --- a/app/src/main/res/layout/list_repositories_by_org.xml +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/layout/list_starred_repos.xml b/app/src/main/res/layout/list_starred_repos.xml deleted file mode 100644 index a28006d..0000000 --- a/app/src/main/res/layout/list_starred_repos.xml +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file