From 5519242cd068bf3de33c3c4be5e8c39adf8e50fb Mon Sep 17 00:00:00 2001 From: tom79 Date: Sat, 1 Jul 2017 15:24:28 +0200 Subject: [PATCH] Improves night mode --- app/build.gradle | 1 + .../mastodon/activities/MediaActivity.java | 8 +++ .../mastodon/activities/TootActivity.java | 21 +++++++ .../mastodon/drawers/StatusListAdapter.java | 31 +++++++++- .../gouv/etalab/mastodon/helper/Helper.java | 54 ++++++++++++++---- .../webview/MastalabWebViewClient.java | 3 - .../drawable-hdpi/ic_action_globe_menu.png | Bin 0 -> 926 bytes .../drawable-ldpi/ic_action_globe_menu.png | Bin 0 -> 456 bytes .../drawable-mdpi/ic_action_globe_menu.png | Bin 0 -> 600 bytes .../drawable-xhdpi/ic_action_globe_menu.png | Bin 0 -> 1352 bytes .../drawable-xxhdpi/ic_action_globe_menu.png | Bin 0 -> 2138 bytes .../drawable-xxxhdpi/ic_action_globe_menu.png | Bin 0 -> 5245 bytes app/src/main/res/layout/activity_media.xml | 4 +- .../main/res/menu/activity_main_drawer.xml | 17 +++++- app/src/main/res/values/strings.xml | 3 +- 15 files changed, 120 insertions(+), 22 deletions(-) create mode 100644 app/src/main/res/drawable-hdpi/ic_action_globe_menu.png create mode 100644 app/src/main/res/drawable-ldpi/ic_action_globe_menu.png create mode 100644 app/src/main/res/drawable-mdpi/ic_action_globe_menu.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_action_globe_menu.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_action_globe_menu.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_action_globe_menu.png diff --git a/app/build.gradle b/app/build.gradle index f77cfdfe3..2e31b866a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -33,4 +33,5 @@ dependencies { compile 'com.evernote:android-job:1.1.11' compile 'com.github.chrisbanes:PhotoView:2.0.0' + } diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/activities/MediaActivity.java b/app/src/main/java/fr/gouv/etalab/mastodon/activities/MediaActivity.java index 518d6954e..baafc4519 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/activities/MediaActivity.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/activities/MediaActivity.java @@ -117,6 +117,14 @@ public class MediaActivity extends AppCompatActivity { finish(); if( getSupportActionBar() != null) getSupportActionBar().setDisplayHomeAsUpEnabled(true); + + RelativeLayout main_container_media = (RelativeLayout) findViewById(R.id.main_container_media); + if( theme == Helper.THEME_LIGHT){ + main_container_media.setBackgroundResource(R.color.background_image); + }else { + main_container_media.setBackgroundResource(R.color.colorPrimaryD); + } + loader = (RelativeLayout) findViewById(R.id.loader); imageView = (PhotoView) findViewById(R.id.media_picture); videoView = (VideoView) findViewById(R.id.media_video); diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/activities/TootActivity.java b/app/src/main/java/fr/gouv/etalab/mastodon/activities/TootActivity.java index a162d472c..5255f584a 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/activities/TootActivity.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/activities/TootActivity.java @@ -80,6 +80,8 @@ import fr.gouv.etalab.mastodon.sqlite.AccountDAO; import fr.gouv.etalab.mastodon.sqlite.Sqlite; import mastodon.etalab.gouv.fr.mastodon.R; +import static fr.gouv.etalab.mastodon.helper.Helper.changeDrawableColor; + /** * Created by Thomas on 01/05/2017. @@ -143,6 +145,25 @@ public class TootActivity extends AppCompatActivity implements OnRetrieveSearcAc toot_lv_accounts = (ListView) findViewById(R.id.toot_lv_accounts); toot_sensitive = (CheckBox) findViewById(R.id.toot_sensitive); + + if( theme == Helper.THEME_DARK){ + changeDrawableColor(TootActivity.this, R.drawable.ic_action_globe,R.color.dark_text); + changeDrawableColor(TootActivity.this, R.drawable.ic_action_lock_open,R.color.dark_text); + changeDrawableColor(TootActivity.this, R.drawable.ic_action_lock_closed,R.color.dark_text); + changeDrawableColor(TootActivity.this, R.drawable.ic_local_post_office,R.color.dark_text); + + changeDrawableColor(TootActivity.this, R.drawable.ic_action_globe,R.color.dark_text); + changeDrawableColor(TootActivity.this, R.drawable.ic_action_camera,R.color.dark_text); + }else { + changeDrawableColor(TootActivity.this, R.drawable.ic_action_globe,R.color.black); + changeDrawableColor(TootActivity.this, R.drawable.ic_action_lock_open,R.color.black); + changeDrawableColor(TootActivity.this, R.drawable.ic_action_lock_closed,R.color.black); + changeDrawableColor(TootActivity.this, R.drawable.ic_local_post_office,R.color.black); + + changeDrawableColor(TootActivity.this, R.drawable.ic_action_globe,R.color.black); + changeDrawableColor(TootActivity.this, R.drawable.ic_action_camera,R.color.black); + } + final LinearLayout drawer_layout = (LinearLayout) findViewById(R.id.drawer_layout); /*drawer_layout.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java b/app/src/main/java/fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java index 381132990..b1d2f9dc0 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java @@ -62,6 +62,7 @@ import fr.gouv.etalab.mastodon.client.Entities.Attachment; import fr.gouv.etalab.mastodon.client.Entities.Status; import fr.gouv.etalab.mastodon.interfaces.OnPostActionInterface; +import static fr.gouv.etalab.mastodon.helper.Helper.changeDrawableColor; /** @@ -185,6 +186,32 @@ public class StatusListAdapter extends BaseAdapter implements OnPostActionInterf if( type == RetrieveFeedsAsyncTask.Type.USER){ holder.status_action_container.setVisibility(View.GONE); } + //Manages theme for icon colors + final SharedPreferences sharedpreferences = context.getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE); + int theme = sharedpreferences.getInt(Helper.SET_THEME, Helper.THEME_LIGHT); + if( theme == Helper.THEME_DARK){ + changeDrawableColor(context, R.drawable.ic_reply,R.color.dark_text); + changeDrawableColor(context, R.drawable.ic_action_more,R.color.dark_text); + changeDrawableColor(context, R.drawable.ic_action_globe,R.color.dark_text); + changeDrawableColor(context, R.drawable.ic_action_lock_open,R.color.dark_text); + changeDrawableColor(context, R.drawable.ic_action_lock_closed,R.color.dark_text); + changeDrawableColor(context, R.drawable.ic_local_post_office,R.color.dark_text); + changeDrawableColor(context, R.drawable.ic_retweet_black,R.color.dark_text); + changeDrawableColor(context, R.drawable.ic_fav_black,R.color.dark_text); + changeDrawableColor(context, R.drawable.ic_photo,R.color.dark_text); + }else { + changeDrawableColor(context, R.drawable.ic_reply,R.color.black); + changeDrawableColor(context, R.drawable.ic_action_more,R.color.black); + changeDrawableColor(context, R.drawable.ic_action_globe,R.color.black); + changeDrawableColor(context, R.drawable.ic_action_lock_open,R.color.black); + changeDrawableColor(context, R.drawable.ic_action_lock_closed,R.color.black); + changeDrawableColor(context, R.drawable.ic_local_post_office,R.color.black); + changeDrawableColor(context, R.drawable.ic_retweet_black,R.color.black); + changeDrawableColor(context, R.drawable.ic_fav_black,R.color.black); + changeDrawableColor(context, R.drawable.ic_photo,R.color.black); + } + + final float scale = context.getResources().getDisplayMetrics().density; if( !status.getIn_reply_to_account_id().equals("null") || !status.getIn_reply_to_id().equals("null") ){ Drawable img = ContextCompat.getDrawable(context, R.drawable.ic_reply); @@ -197,7 +224,8 @@ public class StatusListAdapter extends BaseAdapter implements OnPostActionInterf }else{ holder.status_account_displayname.setCompoundDrawables( null, null, null, null); } - final SharedPreferences sharedpreferences = context.getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE); + + //Click on a conversation if( type != RetrieveFeedsAsyncTask.Type.CONTEXT ){ holder.status_content.setOnClickListener(new View.OnClickListener() { @@ -211,7 +239,6 @@ public class StatusListAdapter extends BaseAdapter implements OnPostActionInterf } }); }else { - int theme = sharedpreferences.getInt(Helper.SET_THEME, Helper.THEME_LIGHT); if( theme == Helper.THEME_LIGHT){ if( position == ShowConversationActivity.position){ holder.main_container.setBackgroundResource(R.color.blue_light); diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/helper/Helper.java b/app/src/main/java/fr/gouv/etalab/mastodon/helper/Helper.java index 71028330b..e2dce425b 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/helper/Helper.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/helper/Helper.java @@ -31,7 +31,9 @@ import android.database.sqlite.SQLiteDatabase; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Color; +import android.graphics.PorterDuff; import android.graphics.drawable.BitmapDrawable; +import android.graphics.drawable.Drawable; import android.media.RingtoneManager; import android.net.ConnectivityManager; import android.net.NetworkInfo; @@ -44,6 +46,7 @@ import android.support.annotation.ColorInt; import android.support.design.widget.NavigationView; import android.support.v4.app.NotificationCompat; import android.support.v4.app.NotificationManagerCompat; +import android.support.v4.content.ContextCompat; import android.text.Html; import android.text.SpannableString; import android.text.Spanned; @@ -54,6 +57,7 @@ import android.util.DisplayMetrics; import android.util.Log; import android.util.TypedValue; import android.view.MenuItem; +import android.view.SubMenu; import android.view.View; import android.view.WindowManager; import android.webkit.CookieManager; @@ -691,20 +695,35 @@ public class Helper { if( currrentUserId == null) return; + MenuItem menu_account = navigationView.getMenu().findItem(R.id.nav_account_list); + MenuItem nav_main_com = navigationView.getMenu().findItem(R.id.nav_main_com); + MenuItem nav_main_opt= navigationView.getMenu().findItem(R.id.nav_main_opt); + final SharedPreferences sharedpreferences = activity.getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE); + int theme = sharedpreferences.getInt(Helper.SET_THEME, Helper.THEME_LIGHT); + if( theme == Helper.THEME_DARK){ + changeDrawableColor(activity, R.drawable.ic_person_add,R.color.dark_text); + changeDrawableColor(activity, R.drawable.ic_person,R.color.dark_text); + changeDrawableColor(activity, R.drawable.ic_cancel,R.color.dark_text); + }else { + changeDrawableColor(activity, R.drawable.ic_person_add,R.color.black); + changeDrawableColor(activity, R.drawable.ic_person,R.color.black); + changeDrawableColor(activity, R.drawable.ic_cancel,R.color.black); + } + if( !menuAccountsOpened ){ arrow.setImageResource(R.drawable.ic_arrow_drop_up); - navigationView.getMenu().clear(); - navigationView.inflateMenu(R.menu.menu_accounts); - SQLiteDatabase db = Sqlite.getInstance(activity, Sqlite.DB_NAME, null, Sqlite.DB_VERSION).open(); - + menu_account.setVisible(true); + nav_main_com.setVisible(false); + nav_main_opt.setVisible(false); final List accounts = new AccountDAO(activity, db).getAllAccount(); - navigationView.setItemIconTintList(null); + SubMenu navigationViewSub = navigationView.getMenu().findItem(R.id.nav_account_list).getSubMenu(); + navigationViewSub.clear(); for(final Account account: accounts) { if( !currrentUserId.equals(account.getId()) ) { - final MenuItem item = navigationView.getMenu().add("@" + account.getAcct() + "@" + account.getInstance()); + final MenuItem item = navigationViewSub.add("@" + account.getAcct() + "@" + account.getInstance()); ImageLoader imageLoader; DisplayImageOptions options = new DisplayImageOptions.Builder().displayer(new SimpleBitmapDisplayer()).cacheInMemory(false) .cacheOnDisk(true).resetViewBeforeLoading(true).build(); @@ -723,6 +742,7 @@ public class Helper { @Override public void onLoadingComplete(String s, View view, Bitmap bitmap) { item.setIcon(new BitmapDrawable(activity.getResources(), bitmap)); + item.getIcon().setColorFilter(0xFFFFFFFF, PorterDuff.Mode.MULTIPLY); } @Override @@ -770,7 +790,7 @@ public class Helper { } } - MenuItem addItem = navigationView.getMenu().add(R.string.add_account); + MenuItem addItem = navigationViewSub.add(R.string.add_account); addItem.setIcon(R.drawable.ic_person_add); addItem.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { @Override @@ -782,13 +802,14 @@ public class Helper { } }); }else{ + menu_account.setVisible(false); + nav_main_com.setVisible(true); + nav_main_opt.setVisible(true); arrow.setImageResource(R.drawable.ic_arrow_drop_down); - navigationView.getMenu().clear(); - navigationView.inflateMenu(R.menu.activity_main_drawer); - final SharedPreferences sharedpreferences = activity.getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE); SQLiteDatabase db = Sqlite.getInstance(activity, Sqlite.DB_NAME, null, Sqlite.DB_VERSION).open(); String userId = sharedpreferences.getString(Helper.PREF_KEY_ID, null); Account account = new AccountDAO(activity, db).getAccountByID(userId); + if( account != null) { if (account.isLocked()) { navigationView.getMenu().findItem(R.id.nav_follow_request).setVisible(true); @@ -1059,6 +1080,7 @@ public class Helper { CookieManager cookieManager = CookieManager.getInstance(); cookieManager.setAcceptThirdPartyCookies(webView, cookies); } + webView.setBackgroundColor(Color.TRANSPARENT); webView.getSettings().setAppCacheEnabled(true); webView.getSettings().setDatabaseEnabled(true); webView.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT); @@ -1092,5 +1114,15 @@ public class Helper { return ""; } - + /** + * change color of a drawable + * @param drawable int the drawable + * @param hexaColor example 0xffff00 + */ + public static Drawable changeDrawableColor(Context context, int drawable, int hexaColor){ + int color = Color.parseColor(context.getString(hexaColor)); + Drawable mDrawable = ContextCompat.getDrawable(context, drawable); + mDrawable.setColorFilter(color, PorterDuff.Mode.SRC_ATOP); + return mDrawable; + } } diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/webview/MastalabWebViewClient.java b/app/src/main/java/fr/gouv/etalab/mastodon/webview/MastalabWebViewClient.java index 9ff1d9348..c844119fd 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/webview/MastalabWebViewClient.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/webview/MastalabWebViewClient.java @@ -17,14 +17,11 @@ import android.app.Activity; import android.graphics.Bitmap; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; -import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.TextView; - -import fr.gouv.etalab.mastodon.helper.Helper; import mastodon.etalab.gouv.fr.mastodon.R; /** diff --git a/app/src/main/res/drawable-hdpi/ic_action_globe_menu.png b/app/src/main/res/drawable-hdpi/ic_action_globe_menu.png new file mode 100644 index 0000000000000000000000000000000000000000..f76e15a6a858c1c87213866301642d53f8851fc4 GIT binary patch literal 926 zcmV;P17ZA$P)~92*}fjO<*zT0&l@FP^7!mf+sBZ0(4u97tzzf zRxkymL9;0$Pyuusxj6(jvr{p2JUDAH^1aQdi^xx44_FUQf+|bf`&lj%hyYGl@z+aq zj~Lx&9>3S~7jW|RD>6U8PH+I!DD6v|H`zxb2mul?UV>_Cr~JE;uJy=8z$-AjL?4sE zJLyZS0LFQ_X}0+`3A8X84LKMu@2}F;R?zpO4t=FrC#h3_EIiM_SmphE@X*8J^_t~7 z_-A*VxtnPn~l3&C1O9IpaeeG1sdwZQN)k-Z9#n_u8O z^P6jQt8*@))1=LZ@#^3dbh(h#pzq*_8K)Vg(k=odBrfnMpivo+oUTc1XV`KjLv3*p z(a+dlWZGTt(AQz5URGxqwbE;*5jOtY=V4wn+SFZYYY)_B!ft&RYMLsxLm0@ z(5}?k&AjN}W%KnK^M^sn@M+@)JRCDNQ~qNm_@;)me;eV4a!Dw@kS< z^#)hX34CA0;}x$dh9qq3lx=9foX0Bi@PQ*Z4m|LgT5DtELvDh_u?&GCBpADU1=C?FIN3K+5c1u$|M3*t}&3;+NC07*qoM6N<$f|c8- Ar2qf` literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-ldpi/ic_action_globe_menu.png b/app/src/main/res/drawable-ldpi/ic_action_globe_menu.png new file mode 100644 index 0000000000000000000000000000000000000000..bcf0316409322e8efa4ef7fd26c87333d166cad1 GIT binary patch literal 456 zcmV;(0XP1MP)%ErQv9ib$zh?2Zs?n}x-if5-J z3)!J03t6~6r_QZudc*ZRHcWl$%$b?*EK!cyc5UfH5rqp+>0N>AV058?FlPzL=P;$ z5%lWZS_nQA(DVe*1uKr=+fgcL4uLjDVRY(v@-qQ3&R|BX zC~FC%3Is2Md>jE!50P~8>Z^ohL*NBYVA@#M2(P-*rkbItNf8J41qi~>e{bDXV yx#+eW!9!!`{&%nIoKan2Nv`W(d2s$8ec>H|sk^G{717WD0000@21zM9PLFWi(8)u`-s}$jZ(_$%2|lN)nT7)Z}AI zNtDEfQj#Hy3FCk2ygI$!yw`g(6N|a^>%F=6+;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3_6bdWaz|?)cwDe=!BjrKguD(-Gsjp3R? zsqR11kr#YkV&hdrxz4b88`J0K!A5XMvP#GEwQ0kk#)kmyDofMONwP8zJfwN!QaB^2 zvCGL7d9JJY_d+I7@}u2{0NpgcUh@YhwHUrPg#b^c$VfkBb~z2~qrGk)0`$`OV*VaY z(O{k5(kyo1XcWJ|p`vW|`Vc@(U>5TCAoKCQlmhG+hZ*Sw%psJ`ybl2eX?%=R(<&k! z`_B{tEKk|^M&=y4%|V|66zFW$a>gf_*j6o+?Mo=Yx)hDS-ZIQZ zEnW(iSQa^K$a=svDc2xPn|Ys3(8ea^9F010CqXi&pAIIoQH=?nYoo7QqrW+i#x_u@>HY8x zG3sBzMa|O*M3@_4@9BsSDK)+)LnV81E`X*Ek<0*Xbq2DS4%=38X2i6yG=Ts^B?!=& z)q;q1K3}AMb3$LRC&Jc;j_zNd)smQPQS*r+b#F=N2;YrJeQhDOC+kH~8}lRT-kMN= zH*C{iE}z*xp4Mf(ENd@-&r z=ch3iAC&o6puu(E>l?|Jvg8)H*AV3fx2oMAa0t5jj4F3WQ_-}BigJy literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_globe_menu.png b/app/src/main/res/drawable-xxhdpi/ic_action_globe_menu.png new file mode 100644 index 0000000000000000000000000000000000000000..a51cef2021b48e2509342b9983a977509739df10 GIT binary patch literal 2138 zcmV-g2&MOlP)p51z=bJ7Jy*^SOA6vU;!8wfCaFlfH^t&Km||()Bz1Z zBai^vkOUrUz-wyoo_rR-pV5neYM==?0VI8L0@Dy_6|n$%qZa_Rz~%r3cVjc=QNRNH zXZSoc$^jn+J?T@31DI!CyA=R_xj+@L%fUd$fmuK)up5v41S|w50i%Gkflk2Xz-zz} zA42THGUT=^0pM4L29*u60k|0rd?)ZBcBsV$Y0eDLG>Nj5WxW9K>j2DEG#!WW-0S50 zcP7Tiw7(44Kb*w;J7lE*@aqn&QarqP^B)7&I*fWmdtK?0_9Y>9)S`^tvq}K?6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R_mTeHA&rDyHO#NrAOhQ- z&_s{5AYnQmAZgzgk^l=0^SdJ*Z-3O`={j0dp&^E8mxm<4vo84vcgPC{wb;J!bRU7X zYdxg9C?o-vx#aVXK^k^`prQCgNyl~%!`%HL39wJs31j4(n^)J~Pm~lN=_!Y$F6j(# zS@7}8WJP{G@S9@Y;=kP=>1jSwb>cVO2Xo{z)38~sihy&uFEc(KPboDa1XTNM~j%+Me$5k^w<_2Bu;ysZi}n{~(xQ`|Q`;#i_#7&t6qme#lo zIWu#!4$XEor{)5RrfX%0YXB-X8EkKp`PtrrvSY(0gDuP2 za3hW0_>EcI#?QVj%M3T|I~ud$vwPD%!)+_$qJ3;z>0#s6bkROHZVhqkV!!a##k_ep zZ(q*>@IP?ie__G`umEfX7Jvm{SO6A)VF6eGh6P{&7#4s9U|0YafJqDg0&&V3^CYA{ Qr2qf`07*qoM6N<$f_PHi;{X5v literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxxhdpi/ic_action_globe_menu.png b/app/src/main/res/drawable-xxxhdpi/ic_action_globe_menu.png new file mode 100644 index 0000000000000000000000000000000000000000..332518dcbae8439afea568e9bb72281b794c7110 GIT binary patch literal 5245 zcma)=_dgU4z{k(t>+Iz0Y}qU0tekyhlZ=yyW)OPl%H% z4u|La`~}bR!)N>hpV#a2dcT628#2(|q6Gi|3`P)rtN$|Qe??9CpZ9CIp#cCkeItDx zYxvUPTN=3aEc-AHCJ?X5Uj{MYC>K1k{g~^>SyR<+=gZEnQyNlD+dkua;8Is+d!Sq1 z4sGGE{PW;rt9@P!9gCDi6~CCEAiuCcX6~mm#qLYYjv6{5yWo50b}{ZAAIfyCGj!rw zdv~oeN60Y!w%W7pk*xotBxDJaELx6KLxUqQZ;tO)F#>&I;KTq8=U z=jj@4D;+xLd6SpES}eVqwPA@^D~u;fd#2MA{{}VhQ$OSUu>(}U<8?szE`MF|+VA^1 zYKxHGl_$S_PYz~yEP^_l*09DWpaSNJW!Q3*ieJ4>Lr7i;&$@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IGac7;W?@el?aG&%=0?U2yn%xkg zQ9i6?Y0pRl4Ejf4_r2tVDi4S0Vu>$_sv$RB;2(wA)ZGT%@qfr}65)2y)-fvHzbr*gvn6{K11cg>_1 zpEMbZL_Ko*7!ma0EnD~_-oh%rwY%mHuyNk}68Y)Bf8GP$#Lb&bxF~mzc^7^sN?Vky z*Impu-Vbba0rAqYc0&e_l2Uj0AbD3cW8;n9VY-ecIr@gE!?Zf?o+GMm$)O?wRUe-#-N1r#RD!_3}9wxYZfT-)N=oF$I#g z`JwV`yJr2Mec0+KjB5hAK2Q+u!tc=icgPd$PHSsZkGg?$z=FDpA`1Jy9X&05nT~>l zwL`hPGS$?$^PH=1@o3LFupyMr8jumUFq*A4(%$((^K7LGfXP5`iF`aX0WANDCO?$l z=FeNtmHxn^>Sk61euFaZ8yb-O+1>LX=Pw#Z}GUW)HjOmFsi!mj2f>^WCo3Q5WL)*IW)x~956p}e;0gf`h?V0 zz*zebeZ5*b?iV_gL%ny`7A`x+UvFpU;kWM)$uQ&vN8fblVIwa->}K-hWsTU}RvfU$5&L_dktOBD4Si literal 0 HcmV?d00001 diff --git a/app/src/main/res/layout/activity_media.xml b/app/src/main/res/layout/activity_media.xml index e41911a99..22948ce35 100644 --- a/app/src/main/res/layout/activity_media.xml +++ b/app/src/main/res/layout/activity_media.xml @@ -19,7 +19,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@color/background_image" + android:id="@+id/main_container_media" > - + + + + + - + Communication Utilisateurs muets Utilisateurs bloqués + Comptes Notifications Demandes d\'abonnements Optimisation @@ -65,7 +66,7 @@ Envoyer un email Veuillez sélectionner un fichier Aucun explorateur de fichiers trouvé ! - Cliquez sur le chemin pour changer + Cliquer sur le chemin pour changer Aucun pouet à afficher ! Pouet ajouté aux favoris !