From d46db0475fbecfcd9db898ebf8f81a8755168723 Mon Sep 17 00:00:00 2001 From: opyale Date: Mon, 6 Apr 2020 19:00:18 +0000 Subject: [PATCH] Improving usability by including whole header in "Details". (#361) Merge branch 'master' into usability-details Improving usability by including whole header in "Details". Co-authored-by: opyale Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/361 Reviewed-by: M M Arif --- .../java/org/mian/gitnex/fragments/RepoInfoFragment.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/mian/gitnex/fragments/RepoInfoFragment.java b/app/src/main/java/org/mian/gitnex/fragments/RepoInfoFragment.java index fa7a3823..3b8673b7 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/RepoInfoFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/RepoInfoFragment.java @@ -136,9 +136,8 @@ public class RepoInfoFragment extends Fragment { repoForksCountInfo = v.findViewById(R.id.repoForksCountInfo); repoCreatedAtInfo = v.findViewById(R.id.repoCreatedAtInfo); repoFileContents = v.findViewById(R.id.repoFileContents); - TextView repoFilename = v.findViewById(R.id.repoFilename); repoMetaFrame = v.findViewById(R.id.repoMetaFrame); - TextView repoMetaData = v.findViewById(R.id.repoMetaData); + LinearLayout repoMetaFrameHeader = v.findViewById(R.id.repoMetaFrameHeader); repoMetaDataExpandCollapse = v.findViewById(R.id.repoMetaDataExpandCollapse); repoFilenameExpandCollapse = v.findViewById(R.id.repoFilenameExpandCollapse); fileContentsFrameHeader = v.findViewById(R.id.fileContentsFrameHeader); @@ -149,13 +148,13 @@ public class RepoInfoFragment extends Fragment { getRepoInfo(instanceUrl, Authorization.returnAuthentication(getContext(), loginUid, instanceToken), repoOwner, repoName, locale, timeFormat); getFileContents(instanceUrl, Authorization.returnAuthentication(getContext(), loginUid, instanceToken), repoOwner, repoName, getResources().getString(R.string.defaultFilename)); - repoFilename.setOnClickListener(new View.OnClickListener() { + fileContentsFrameHeader.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { collapseExpandView(); } }); - repoMetaData.setOnClickListener(new View.OnClickListener() { + repoMetaFrameHeader.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { collapseExpandViewMeta(); }