Add missing Javadocs to License, Media, and Utils classes (#1965)

* Add missing Javadocs to License, Media, and Utils classes
This commit is contained in:
Reid 2018-12-20 16:12:18 -05:00 committed by Adam Jones
parent f521e8886d
commit 809c0c32d7
6 changed files with 43 additions and 2 deletions

View file

@ -173,6 +173,10 @@ public class Utils {
return PreferenceManager.getDefaultSharedPreferences(context).getBoolean("theme", false);
}
/**
* Launches intent to rate app
* @param context
*/
public static void rateApp(Context context) {
final String appPackageName = BuildConfig.class.getPackage().getName();
try {
@ -183,6 +187,11 @@ public class Utils {
}
}
/**
* Launches intent for web URL
* @param context
* @param url
*/
public static void handleWebUrl(Context context, Uri url) {
Timber.d("Launching web url %s", url.toString());
Intent browserIntent = new Intent(Intent.ACTION_VIEW, url);