fix(network): use MoshidonAndroid as user agent

This commit is contained in:
LucasGGamerM
2024-07-23 15:37:10 -03:00
parent 5edbe9b826
commit 1d7cbcc4e1

View File

@@ -25,7 +25,7 @@ public class MastodonApp extends Application{
params.diskCacheSize=100*1024*1024; params.diskCacheSize=100*1024*1024;
params.maxMemoryCacheSize=Integer.MAX_VALUE; params.maxMemoryCacheSize=Integer.MAX_VALUE;
ImageCache.setParams(params); ImageCache.setParams(params);
NetworkUtils.setUserAgent("MastodonAndroid/"+BuildConfig.VERSION_NAME); NetworkUtils.setUserAgent("MoshidonAndroid/"+BuildConfig.VERSION_NAME);
PushSubscriptionManager.tryRegisterFCM(); PushSubscriptionManager.tryRegisterFCM();
GlobalUserPreferences.load(); GlobalUserPreferences.load();