@@ -63,6 +63,11 @@ private void fillItems(ArrayList<UItem> items, UniversalAdapter adapter) {
6363 mainConfig .getBoolean ("displayExtraProfileInformation" , false ));
6464 displayExtraProfileInfo .subtext = getString (R .string .DisplayExtraProfileInformationInfo );
6565 items .add (displayExtraProfileInfo );
66+
67+ UItem hideTopChatBars = UItem .asCheck (2 , getString (R .string .HideTopChatBars )).setChecked (
68+ mainConfig .getBoolean ("hideTopChatBars" , false ));
69+ hideTopChatBars .subtext = getString (R .string .HideTopChatBarsInfo );
70+ items .add (hideTopChatBars );
6671 }
6772
6873 private void onClick (UItem item , View view , int position , float x , float y ) {
@@ -85,6 +90,14 @@ private void onClick(UItem item, View view, int position, float x, float y) {
8590 ((TextCheckCell ) view ).setChecked (newValue );
8691 }
8792 listView .adapter .update (false );
93+ } else if (item .id == 2 ) {
94+ SharedPreferences prefs = ApplicationLoader .applicationContext .getSharedPreferences ("mainconfig" , Activity .MODE_PRIVATE );
95+ boolean newValue = !prefs .getBoolean ("hideTopChatBars" , false );
96+ prefs .edit ().putBoolean ("hideTopChatBars" , newValue ).apply ();
97+ if (view instanceof TextCheckCell ) {
98+ ((TextCheckCell ) view ).setChecked (newValue );
99+ }
100+ listView .adapter .update (false );
88101 }
89102 }
90103
0 commit comments