mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-11-04 07:13:28 +01:00 
			
		
		
		
	Merge pull request #679 from ImranR98/dev
Don't auto-capitalize names (#669)
This commit is contained in:
		@@ -594,9 +594,7 @@ class SourceProvider {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    String apkVersion = apk.version.replaceAll('/', '-');
 | 
					    String apkVersion = apk.version.replaceAll('/', '-');
 | 
				
			||||||
    var name = currentApp != null ? currentApp.name.trim() : '';
 | 
					    var name = currentApp != null ? currentApp.name.trim() : '';
 | 
				
			||||||
    name = name.isNotEmpty
 | 
					    name = name.isNotEmpty ? name : apk.names.name;
 | 
				
			||||||
        ? name
 | 
					 | 
				
			||||||
        : apk.names.name[0].toUpperCase() + apk.names.name.substring(1);
 | 
					 | 
				
			||||||
    return App(
 | 
					    return App(
 | 
				
			||||||
        currentApp?.id ??
 | 
					        currentApp?.id ??
 | 
				
			||||||
            ((!source.appIdInferIsOptional ||
 | 
					            ((!source.appIdInferIsOptional ||
 | 
				
			||||||
@@ -606,7 +604,7 @@ class SourceProvider {
 | 
				
			|||||||
                : null) ??
 | 
					                : null) ??
 | 
				
			||||||
            generateTempID(standardUrl, additionalSettings),
 | 
					            generateTempID(standardUrl, additionalSettings),
 | 
				
			||||||
        standardUrl,
 | 
					        standardUrl,
 | 
				
			||||||
        apk.names.author[0].toUpperCase() + apk.names.author.substring(1),
 | 
					        apk.names.author,
 | 
				
			||||||
        name,
 | 
					        name,
 | 
				
			||||||
        currentApp?.installedVersion,
 | 
					        currentApp?.installedVersion,
 | 
				
			||||||
        apkVersion,
 | 
					        apkVersion,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user