mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Merge pull request #451 from maskaravivek/credits
Add credits in about page
This commit is contained in:
		
						commit
						b64c77021b
					
				
					 3 changed files with 16 additions and 0 deletions
				
			
		|  | @ -1,5 +1,7 @@ | |||
| package fr.free.nrw.commons; | ||||
| 
 | ||||
| import android.content.Intent; | ||||
| import android.net.Uri; | ||||
| import android.os.Bundle; | ||||
| import android.text.Html; | ||||
| import android.text.method.LinkMovementMethod; | ||||
|  | @ -16,6 +18,7 @@ public class AboutActivity extends BaseActivity { | |||
|     @BindView(R.id.about_improve) TextView improveText; | ||||
|     @BindView(R.id.about_privacy_policy) TextView privacyPolicyText; | ||||
|     @BindView(R.id.about_uploads_to) TextView uploadsToText; | ||||
|     @BindView(R.id.about_credits) TextView creditsText; | ||||
| 
 | ||||
|     @Override | ||||
|     public void onCreate(Bundle savedInstanceState) { | ||||
|  | @ -35,10 +38,12 @@ public class AboutActivity extends BaseActivity { | |||
|         fixFormatting(licenseText, R.string.about_license); | ||||
|         fixFormatting(improveText, R.string.about_improve); | ||||
|         fixFormatting(privacyPolicyText, R.string.about_privacy_policy); | ||||
|         fixFormatting(creditsText, R.string.about_credits); | ||||
| 
 | ||||
|         licenseText.setMovementMethod(LinkMovementMethod.getInstance()); | ||||
|         improveText.setMovementMethod(LinkMovementMethod.getInstance()); | ||||
|         privacyPolicyText.setMovementMethod(LinkMovementMethod.getInstance()); | ||||
|         creditsText.setMovementMethod(LinkMovementMethod.getInstance()); | ||||
|     } | ||||
| 
 | ||||
|     private void fixFormatting(TextView textView, int resource) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Josephine Lim
						Josephine Lim