diff --git a/Changelog.txt b/Changelog.txt
index 912ceed..723368f 100644
--- a/Changelog.txt
+++ b/Changelog.txt
@@ -101,11 +101,23 @@ v2.0.0
- New logo
- Auto restart changing some core settings
- Changed load animation
-- Center text of posts
-- More space between posts
-- Black theme improved
+- Added settings:
+ - Center text of posts
+ - More space between posts
- Removed 'Hide sponsored posts'
+- Black theme improved
- Added one important credit
- Updated turkish translation (sirreddot)
- Added arabic translation (Xkirnel99)
-!Consider the possibility to donate!
\ No newline at end of file
+
+v2.1.0
+- More stability (removed useless code and splitted the webview config)
+- Added settings:
+ - Set the text size
+ - Enable/disable fast-share
+- Substitute checkbox with switches into the settings
+- Fixed the messages crash
+- Removed useless strings (it's lighten)
+
+
+! Consider the possibility to donate !
\ No newline at end of file
diff --git a/SlimFacebook/.idea/gradle.xml b/SlimFacebook/.idea/gradle.xml
index 1bbc21d..b340230 100644
--- a/SlimFacebook/.idea/gradle.xml
+++ b/SlimFacebook/.idea/gradle.xml
@@ -3,8 +3,9 @@
diff --git a/SlimFacebook/.idea/vcs.xml b/SlimFacebook/.idea/vcs.xml
deleted file mode 100644
index 6564d52..0000000
--- a/SlimFacebook/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/SlimFacebook/.idea/workspace.xml b/SlimFacebook/.idea/workspace.xml
index 33f1a0d..3f2de09 100644
--- a/SlimFacebook/.idea/workspace.xml
+++ b/SlimFacebook/.idea/workspace.xml
@@ -2,8 +2,22 @@
-
+
+ es
+
+
+
+
+ @style/SlimFacebookTheme
+
+
+
+
+ @style/SlimFacebookTheme
+
+
+
";
+ view.loadData(summary, "text/html; charset=utf-8", "utf-8");//load a custom html page
+ }
+
+ @TargetApi(android.os.Build.VERSION_CODES.M)
+ @Override// redirect to deprecated method, so we can use it in all SDK versions
+ public void onReceivedError(WebView view, WebResourceRequest req, WebResourceError err) {
+ onReceivedError(view, err.getErrorCode(), err.getDescription().toString(), req.getUrl().toString());
+ }
+
+ // when I click in a external link
+ @Override
+ public boolean shouldOverrideUrlLoading(WebView view, String url) {
+ Context context = view.getContext();
+ if (url == null
+ || Uri.parse(url).getHost().endsWith("facebook.com")
+ || Uri.parse(url).getHost().endsWith("m.facebook.com")
+ || url.contains(".gif")) {//it is a normal url
+ return false; //url is ok
+ } else {
+ if (Uri.parse(url).getHost().endsWith("fbcdn.net")) {//it is an image
+ //TODO add the possibility to download and share directly
+
+ Toast.makeText(context, context.getString(R.string.downloadOrShareWithBrowser),
+ Toast.LENGTH_LONG).show();
+ //TODO get bitmap from url
+ }
+
+ //if the link doesn't contain 'facebook.com', open it using the browser
+ try {
+ context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
+ } catch (ActivityNotFoundException e) {//this prevents the crash
+ Log.e("shouldOverrideUrlLoad", "" + e.getMessage());
+ e.printStackTrace();
+ }
+ return true;
+ }//https://www.facebook.com/dialog/return/close?#_=_
+ }
+
+ @Override
+ public void onPageFinished(WebView view, String url) {
+ Context context = view.getContext();
+ //load the css customizations
+ String css = "";
+ if (savedPreferences.getBoolean("pref_hideSponsoredPosts", false)) { css += context.getString(R.string.hideSponsoredPosts); }
+ if (savedPreferences.getBoolean("pref_centerTextPosts", false)) { css += context.getString(R.string.centerTextPosts); }
+ if (savedPreferences.getBoolean("pref_addSpaceBetweenPosts", false)) { css += context.getString(R.string.addSpaceBetweenPosts); }
+
+ switch (savedPreferences.getString("pref_theme", "standard")) {
+ case "DarkTheme": {
+ css += context.getString(R.string.blackTheme);
+ // this.context.setTheme(R.style.SlimSocialBlackTheme);
+ }
+ default:
+ break;
+ }
+
+ if (savedPreferences.getBoolean("pref_fixedBar", true)) {
+ css += context.getString(R.string.fixedBar);//get the first part
+
+ int navbar = 0;//default value
+ int resourceId = context.getResources().getIdentifier("status_bar_height", "dimen", "android");//get id
+ if (resourceId > 0) {//if there is
+ navbar = context.getResources().getDimensionPixelSize(resourceId);//get the dimension
+ }
+ float density = context.getResources().getDisplayMetrics().density;
+ int barHeight = (int) ((context.getResources().getDisplayMetrics().heightPixels - navbar - 44) / density);
+
+ css += ".flyout { max-height:" + barHeight + "px; overflow-y:scroll; }";//without this doen-t scroll
+ }
+
+ //apply the customizations
+ view.loadUrl("javascript:function addStyleString(str) { var node = document.createElement('style'); node.innerHTML = " +
+ "str; document.body.appendChild(node); } addStyleString('" + css + "');");
+
+ //finish the load
+ super.onPageFinished(view, url);
+ }
+ //END management of loading
+}
diff --git a/SlimFacebook/app/src/main/res/layout/circular_progress_bar.xml b/SlimFacebook/app/src/main/res/layout/circular_progress_bar.xml
deleted file mode 100644
index cc34aab..0000000
--- a/SlimFacebook/app/src/main/res/layout/circular_progress_bar.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/SlimFacebook/app/src/main/res/values-ar/strings.xml b/SlimFacebook/app/src/main/res/values-ar/strings.xml
index f3454a5..3de5a20 100644
--- a/SlimFacebook/app/src/main/res/values-ar/strings.xml
+++ b/SlimFacebook/app/src/main/res/values-ar/strings.xml
@@ -61,7 +61,6 @@ Leonardo Rignanese للفيسبوك هو تطبيق مفتوح المصدر مب
مبتكر الشعار الرائعكامل الموهبة ومبدعخروج
- للفيسبوك :SlimSocialتحميل \n https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebookلن يتم جمع أو نقل أي معلومات شخصية أو حساسة حول جهازك عبر هذا التطبيق
diff --git a/SlimFacebook/app/src/main/res/values-de/strings.xml b/SlimFacebook/app/src/main/res/values-de/strings.xml
index 6f9717c..4cd37ac 100644
--- a/SlimFacebook/app/src/main/res/values-de/strings.xml
+++ b/SlimFacebook/app/src/main/res/values-de/strings.xml
@@ -15,7 +15,6 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
AktualisierenIm Browser öffnenEinstellungen
- InformationTeile diese App
diff --git a/SlimFacebook/app/src/main/res/values-es/strings.xml b/SlimFacebook/app/src/main/res/values-es/strings.xml
index fb4c15d..0a907ee 100644
--- a/SlimFacebook/app/src/main/res/values-es/strings.xml
+++ b/SlimFacebook/app/src/main/res/values-es/strings.xml
@@ -54,7 +54,6 @@ SlimSocial for Facebook es una aplicación «Open Source» creada por Leonardo R
Sin ellos, no sería posible añadir algunas buenas funciones. Si eres un desarrollador, ¡tienes que ver sus trabajos geniales!Creador del magnifico logotipoSalir
- Descargues SlimSocial for Facebook: \n https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebook¡Ninguna información personal o privada a cerca de ti es recogida o transmitida por esta aplicación!
diff --git a/SlimFacebook/app/src/main/res/values-fr/strings.xml b/SlimFacebook/app/src/main/res/values-fr/strings.xml
index 008ed5b..fda595b 100644
--- a/SlimFacebook/app/src/main/res/values-fr/strings.xml
+++ b/SlimFacebook/app/src/main/res/values-fr/strings.xml
@@ -54,7 +54,6 @@ SlimSocial for Facebook est une application «Open Source» créée par Leonardo
Sans eux, il me serais pas possible d\'ajouter quelques fictions utiles. Si vous êtes un développeurs, vous devez regarder leurs travails brillants!Créateur du magnifique logoSortir
- Sauvegardez SlimSocial for Facebook: \n https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebookAucune information personnel ou privée sur toi est collectée ou transmit par cette application!
diff --git a/SlimFacebook/app/src/main/res/values-hi/strings.xml b/SlimFacebook/app/src/main/res/values-hi/strings.xml
index b6f07f7..d70272c 100644
--- a/SlimFacebook/app/src/main/res/values-hi/strings.xml
+++ b/SlimFacebook/app/src/main/res/values-hi/strings.xml
@@ -49,7 +49,6 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
उनके बिना, मैं कुछ आकर्षक फंक्शन्स नहीं बना पाता . यदि आप एक डेवलपर हैं, आप को उन भी मेहनत देखना चाहिए!इस शानदार लोगो के क्रिएटर बाहर जाएं
- डाउनलोड SlimSocial for Facebook: \n https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebook
\ No newline at end of file
diff --git a/SlimFacebook/app/src/main/res/values-in/strings.xml b/SlimFacebook/app/src/main/res/values-in/strings.xml
index d287fea..8f2371a 100644
--- a/SlimFacebook/app/src/main/res/values-in/strings.xml
+++ b/SlimFacebook/app/src/main/res/values-in/strings.xml
@@ -4,13 +4,6 @@
Aplikasi ini dengan Sumber kode terbuka.Tidak ada koneksi,Coba Segarkan kembali.
- Untuk menggunakan SlimFacebook,anda harus:\n
- 1. LANGGANAN VERSI BETA:\n
- - Open https://play.google.com/apps/testing/it.rignanese.leo.slimfacebook \n
- - Sign in with Google \n
- - Accept the conditions \n
- 2. DOWNLOAD APLIKASI: https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebook
- InformasiBuka dengan perambanPengaturan AplikasiPengaturanFacebook
@@ -19,7 +12,6 @@
Bagikan Aplikasi Iniinstead of by top storiesOps, Ada masalah Jaringan!
- Penggunaan DataOrder the news feed by most recentVersionTerima kasih!
diff --git a/SlimFacebook/app/src/main/res/values-it/strings.xml b/SlimFacebook/app/src/main/res/values-it/strings.xml
index f0a0aa7..5992bb4 100644
--- a/SlimFacebook/app/src/main/res/values-it/strings.xml
+++ b/SlimFacebook/app/src/main/res/values-it/strings.xml
@@ -6,8 +6,6 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
Apri nel browser
- Impostazioni
- InformazioniOps, c\'è un problema!Controlla la connessione e ricarica.
@@ -15,16 +13,10 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
Questa applicazione è Open Source.RicaricaCondividi quest\'app
- Per scaricare SlimFacebook:\n
-- Apri: https://play.google.com/apps/testing/it.rignanese.leo.slimfacebook \n
-- Accedi a Google (se non sei già autenticato)\n
-- Premi "Diventa un Tester"\n
-- Con l\'app del Play Store apri: https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebookMostra per prime le notizie recentiInvece che quelle principaliImpostazioni di FacebookImpostazioni dell\'App
- Utilizzo DatiVersionescegli il tuo tema preferitoScegli il tema
@@ -44,7 +36,6 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
DesignerRealizzatore del logoEsci
- Scarica SlimSocial for Facebook: \n https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebookNessuna informazione personale o privata riguardo te o il tuo device è raccolta o trasmessa da quest\'app !DonaHo scelto di sviluppare quest\'app gratis. Lo merito un caffè?
@@ -64,9 +55,15 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
Grazie per il tema fantasticoScegli il tema che ti piace E\' anche grazie a te che quest\'app esiste
- Più distanza tra i post
+ Aumenta lo spazio tra i postCentra il testo dei postTemiSei importante
+ Per scaricare SlimFacebook:\n - Apri: https://play.google.com/apps/testing/it.rignanese.leo.slimfacebook \n - Accedi a Google (se non sei già autenticato)\n - Premi "Diventa un Tester"\n - Con l\'app del Play Store apri: https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebook
+ Impostazioni
+ Con la Condivisione Veloce puoi condividere qualsiasi link semplicemente tenendolo premuto
+ Scegli la dimensione del testo che preferisci
+ Abilita la Condivisione Veloce
+ Dimensione del testo
diff --git a/SlimFacebook/app/src/main/res/values-nl/strings.xml b/SlimFacebook/app/src/main/res/values-nl/strings.xml
index 7ffdd53..fa2ddfb 100644
--- a/SlimFacebook/app/src/main/res/values-nl/strings.xml
+++ b/SlimFacebook/app/src/main/res/values-nl/strings.xml
@@ -56,7 +56,6 @@
Zonder hen, zou ik geen aantrekkelijke functies kunnen toevoegen. Ben je een developer, ga dan eens kijken naar hun fantastisch werk.Maker van het prachtige logo.Sluit
- Download SlimSocial voor Facebook: \n https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebookGeen persoonlijke informatie over jou of je toestel wordt verzameld of overgebracht via deze app!
diff --git a/SlimFacebook/app/src/main/res/values-pl/strings.xml b/SlimFacebook/app/src/main/res/values-pl/strings.xml
index e318afc..be8f655 100644
--- a/SlimFacebook/app/src/main/res/values-pl/strings.xml
+++ b/SlimFacebook/app/src/main/res/values-pl/strings.xml
@@ -57,7 +57,6 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
Bez nich nie mógłbym dodać wielu fajnych funkcji. Jeśli jesteś programistą, musisz dostrzec ogrom ich pracy!Twórca majestatycznego logoWyjście
- Pobierz SlimSocial for Facebook: \n https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebookŻadne osobiste ani prywatne informacje o Tobie lub Twoim urządzeniu nie są zbierane ani wysyłane przez tę aplikację!
diff --git a/SlimFacebook/app/src/main/res/values-pt/strings.xml b/SlimFacebook/app/src/main/res/values-pt/strings.xml
index 83e782c..f54e7fe 100644
--- a/SlimFacebook/app/src/main/res/values-pt/strings.xml
+++ b/SlimFacebook/app/src/main/res/values-pt/strings.xml
@@ -54,7 +54,6 @@ SlimSocial for Facebook é um aplicativo de código aberto criado por Leonardo R
Sem eles, eu não poderia incluir algumas funções atrativas. Se você for um desenvolvedor, você tem ver o ótimo trabalho deles!Criador do magnífico logotipoSair
- Baixe SlimSocial for Facebook: \n https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebookNenhuma informação pessoal ou privada sobre você é coletada ou transmitida por este aplicativo!
diff --git a/SlimFacebook/app/src/main/res/values-sk/strings.xml b/SlimFacebook/app/src/main/res/values-sk/strings.xml
index ac1157e..1d3fa69 100644
--- a/SlimFacebook/app/src/main/res/values-sk/strings.xml
+++ b/SlimFacebook/app/src/main/res/values-sk/strings.xml
@@ -66,7 +66,6 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
Tvorca veľkolepého logaPlný talentu a kreativityUkončiť
- Stiahnuť SlimSocial pre Facebook: \n https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebookTáto aplikácia nezbiera ani nepreposiela žiadne osobné alebo súkromné informácie o vás alebo vašom zariadení!
diff --git a/SlimFacebook/app/src/main/res/values-zh-rTW/strings.xml b/SlimFacebook/app/src/main/res/values-zh-rTW/strings.xml
index 881c658..ef4cb49 100644
--- a/SlimFacebook/app/src/main/res/values-zh-rTW/strings.xml
+++ b/SlimFacebook/app/src/main/res/values-zh-rTW/strings.xml
@@ -8,7 +8,6 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
重新整理使用外部瀏覽器開啟設定
- Information沒有連線!請檢查連線後重新整理.
@@ -20,13 +19,11 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
最新動態優先於熱門動態Facebook設定程式設定
- 網路使用量版本選擇主題選擇您喜愛的主題程式資訊感謝!以瀏覽器下載或分享.
-
diff --git a/SlimFacebook/app/src/main/res/values/arrays.xml b/SlimFacebook/app/src/main/res/values/arrays.xml
index 147dbb3..79c5a84 100644
--- a/SlimFacebook/app/src/main/res/values/arrays.xml
+++ b/SlimFacebook/app/src/main/res/values/arrays.xml
@@ -12,4 +12,17 @@
DarkGrayThemeDeepBlueTheme
+
+
+ Extra Small
+ Small
+ Standard
+ Big
+
+
+ 80
+ 90
+ 100
+ 110
+
diff --git a/SlimFacebook/app/src/main/res/values/strings.xml b/SlimFacebook/app/src/main/res/values/strings.xml
index ae977e5..d9d5583 100644
--- a/SlimFacebook/app/src/main/res/values/strings.xml
+++ b/SlimFacebook/app/src/main/res/values/strings.xml
@@ -32,7 +32,7 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
Center the posts textThe text of each post will be centeredThere will be more space between posts
- Add space between posts
+ More space between postsThanks for the fantastic themes!Choose the theme that you likeFixed top bar
@@ -68,7 +68,7 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
- To download SlimFacebook you have to:\n - Open https://play.google.com/apps/testing/it.rignanese.leo.slimfacebook \n - Login in Google (if you aren\'t already logged)\n - Push \"Become a tester\"\n - Open this with the Play Store App: https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebook
+ To download SlimFacebook you have to:\n - Open https://play.google.com/apps/testing/it.rignanese.leo.slimfacebook \n - Login in Google (if you aren\'t already logged)\n - Push \"Become a tester\"\n - Open this with the Play Store App: https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebookThanks!Opening browser you can download or share this image.Share this link
@@ -77,10 +77,14 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
Creator of the magnificent logoFull of talent and creativityExit
- Download SlimSocial for Facebook: \n https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebook
+ Download SlimSocial for Facebook: \n https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebookNo personal or private information about you or your device is collected or trasmetted by this app !ThemesApplying changes!
+ Text Size
+ Enable Fast Share
+ With Fast Share you can share any link simply tapping and holding it
+ Choose the text size that you prefer
diff --git a/SlimFacebook/app/src/main/res/values/styles.xml b/SlimFacebook/app/src/main/res/values/styles.xml
index 6b654ea..4b578ed 100644
--- a/SlimFacebook/app/src/main/res/values/styles.xml
+++ b/SlimFacebook/app/src/main/res/values/styles.xml
@@ -6,4 +6,10 @@
@color/darkBlueSlimFacebookTheme@color/blueSlimFacebookTheme
+
+
diff --git a/SlimFacebook/app/src/main/res/xml/preferences.xml b/SlimFacebook/app/src/main/res/xml/preferences.xml
index 72f8838..d142fc5 100644
--- a/SlimFacebook/app/src/main/res/xml/preferences.xml
+++ b/SlimFacebook/app/src/main/res/xml/preferences.xml
@@ -5,36 +5,44 @@
android:key="prefCat_key_fb_settings"
android:title="@string/prefCat_fb_settings_title">
-
-
-
-
-
+
+
-
-
+
+
+