Improving design of "Repository Meta" (#362)
Merge branch 'master' into details-design Always open "Repository Meta" Fixing bugs. Merge remote-tracking branch 'remotes/main/master' into details-design Typo removal. Do not show pull requests when API returns null. Replacing size by watchers Removing unused imports. Moving time formatting into TimeHelper. Changing website icon and renaming button and dialog text. Further contentDescription Adding contentDescription Adding support for "timeFormat" Merge remote-tracking branch 'remotes/main/master' into details-design Full support for translation. Partially supporting translation. Adding "view additional information". Adding additional information. Adding forks count. First design changes. Improving usability by including whole header in "Details". Co-authored-by: opyale <example@example.com> Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/362 Reviewed-by: M M Arif <mmarif@swatian.com>
This commit is contained in:
		@@ -537,29 +537,11 @@ public class IssueDetailActivity extends BaseActivity {
 | 
			
		||||
                            issueDescription.setLayoutParams(paramsDesc);
 | 
			
		||||
                        }
 | 
			
		||||
 | 
			
		||||
                        switch (timeFormat) {
 | 
			
		||||
                            case "pretty": {
 | 
			
		||||
                                PrettyTime prettyTime = new PrettyTime(new Locale(locale));
 | 
			
		||||
                                String createdTime = prettyTime.format(singleIssue.getCreated_at());
 | 
			
		||||
                                issueCreatedTime.setText(createdTime);
 | 
			
		||||
                                issueCreatedTime.setVisibility(View.VISIBLE);
 | 
			
		||||
                                issueCreatedTime.setOnClickListener(new ClickListener(TimeHelper.customDateFormatForToastDateFormat(singleIssue.getCreated_at()), getApplicationContext()));
 | 
			
		||||
                                break;
 | 
			
		||||
                            }
 | 
			
		||||
                            case "normal": {
 | 
			
		||||
                                DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd '" + getResources().getString(R.string.timeAtText) + "' HH:mm", new Locale(locale));
 | 
			
		||||
                                String createdTime = formatter.format(singleIssue.getCreated_at());
 | 
			
		||||
                                issueCreatedTime.setText(createdTime);
 | 
			
		||||
                                issueCreatedTime.setVisibility(View.VISIBLE);
 | 
			
		||||
                                break;
 | 
			
		||||
                            }
 | 
			
		||||
                            case "normal1": {
 | 
			
		||||
                                DateFormat formatter = new SimpleDateFormat("dd-MM-yyyy '" + getResources().getString(R.string.timeAtText) + "' HH:mm", new Locale(locale));
 | 
			
		||||
                                String createdTime = formatter.format(singleIssue.getCreated_at());
 | 
			
		||||
                                issueCreatedTime.setText(createdTime);
 | 
			
		||||
                                issueCreatedTime.setVisibility(View.VISIBLE);
 | 
			
		||||
                                break;
 | 
			
		||||
                            }
 | 
			
		||||
                        issueCreatedTime.setText(TimeHelper.formatTime(singleIssue.getCreated_at(), new Locale(locale), timeFormat, ctx));
 | 
			
		||||
                        issueCreatedTime.setVisibility(View.VISIBLE);
 | 
			
		||||
 | 
			
		||||
                        if(timeFormat.equals("pretty")) {
 | 
			
		||||
                            issueCreatedTime.setOnClickListener(new ClickListener(TimeHelper.customDateFormatForToastDateFormat(singleIssue.getCreated_at()), ctx));
 | 
			
		||||
                        }
 | 
			
		||||
 | 
			
		||||
                        if(singleIssue.getMilestone() != null) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user