[android] Remove method to start facebook app

Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
Jean-Baptiste
2026-01-10 12:30:57 +01:00
committed by jeanbaptisteC
parent d432ead844
commit cb4472c325
2 changed files with 0 additions and 24 deletions

View File

@@ -184,20 +184,6 @@ public class Utils
}
}
public static void showFacebookPage(Activity activity)
{
try
{
// Exception is thrown if we don't have installed Facebook application.
getPackageInfo(activity.getPackageManager(), Constants.Package.FB_PACKAGE, 0);
activity.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(Constants.Url.FB_OM_COMMUNITY_NATIVE)));
}
catch (final Exception e)
{
activity.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(Constants.Url.FB_OM_COMMUNITY_HTTP)));
}
}
public static void openUrl(@NonNull Context context, @Nullable String url)
{
if (TextUtils.isEmpty(url))

View File

@@ -22,9 +22,6 @@ public final class Constants
public static final String LEMMY = "https://sopuli.xyz/c/CoMaps";
public static final String BLUESKY = "https://bsky.app/profile/comaps.app";
public static final String PIXELFED = "https://pixelfed.social/comaps";
public static final String FB_OM_COMMUNITY_HTTP = "https://www.facebook.com/profile.php?id=61575286559965";
public static final String FB_OM_COMMUNITY_NATIVE = "fb://profile/61575286559965";
public static final String CODE_REPO = "https://codeberg.org/comaps/comaps";
public static final String COPYRIGHT = "file:///android_asset/copyright.html";
@@ -36,13 +33,6 @@ public final class Constants
private Url() {}
}
public static class Package
{
public static final String FB_PACKAGE = "com.facebook.katana";
private Package() {}
}
public static class Vendor
{
public static final String HUAWEI = "HUAWEI";