@@ -1483,7 +1483,7 @@ public void doDrawer() {
14831483 if (Authentication .isLoggedIn && Authentication .didOnline ) {
14841484
14851485 header = inflater .inflate (R .layout .drawer_loggedin , drawerSubList , false );
1486- LinearLayout multiReddits = header .findViewById (R .id .multi );
1486+ RelativeLayout multiReddits = header .findViewById (R .id .multi );
14871487 headerMain = header ;
14881488 hea = header .findViewById (R .id .back );
14891489
@@ -1523,20 +1523,19 @@ public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which)
15231523 return true ;
15241524 }
15251525 });
1526- LinearLayout multireddits_area = header .findViewById (R .id .multireddits_area );
1526+ LinearLayout multireddits_area = header .findViewById (R .id .expand_multireddits );
15271527
1528- multireddits_area .setVisibility (View .GONE );
1529- findViewById (R .id .multireddits_flip ).setOnClickListener (new View .OnClickListener () {
1528+ findViewById (R .id .godown_multireddits ).setOnClickListener (new View .OnClickListener () {
15301529 @ Override
15311530 public void onClick (View v ) {
15321531 if (multireddits_area .getVisibility () == View .GONE ) {
15331532 expand (multireddits_area );
1534- flipAnimator (false , header .findViewById (R .id .multireddits_flip )).start ();
1535- header .findViewById (R .id .multireddits_flip ).setContentDescription (getResources ().getString (R .string .btn_collapse ));
1533+ flipAnimator (false , header .findViewById (R .id .godown_multireddits )).start ();
1534+ header .findViewById (R .id .godown_multireddits ).setContentDescription (getResources ().getString (R .string .btn_collapse ));
15361535 } else {
15371536 collapse (multireddits_area );
1538- flipAnimator (true , header .findViewById (R .id .multireddits_flip )).start ();
1539- header .findViewById (R .id .multireddits_flip ).setContentDescription (getResources ().getString (R .string .btn_expand ));
1537+ flipAnimator (true , header .findViewById (R .id .godown_multireddits )).start ();
1538+ header .findViewById (R .id .godown_multireddits ).setContentDescription (getResources ().getString (R .string .btn_expand ));
15401539 }
15411540
15421541 }
@@ -4848,35 +4847,17 @@ protected Subreddit doInBackground(String... params) {
48484847 public class SyncMultiReddits extends AsyncTask <Void , Void , Void > {
48494848 @ Override
48504849 protected Void doInBackground (Void ... params ) {
4851- try {
4852- UserSubscriptions .syncMultiReddits (MainActivity .this );
4853- } catch (final Exception e ) {
4854- runOnUiThread (new Runnable () {
4855- @ Override
4856- public void run () {
4857- new AlertDialogWrapper .Builder (MainActivity .this )
4858- .setTitle (R .string .err_title )
4859- .setMessage (e instanceof ApiException ? getString (R .string .misc_err ) + ": " + ((ApiException ) e ).getExplanation () + "\n " + getString (R .string .misc_retry ) : getString (R .string .misc_err ))
4860- .setNeutralButton (R .string .btn_ok , new DialogInterface .OnClickListener () {
4861- @ Override
4862- public void onClick (DialogInterface dialogInterface , int i ) {
4863- finish ();
4864- }
4865- }).create ().show ();
4866- }
4867- });
4868- e .printStackTrace ();
4869- }
4850+ UserSubscriptions .syncMultiReddits (MainActivity .this );
48704851 return null ;
48714852 }
48724853
48734854 @ Override
48744855 protected void onPostExecute (Void aVoid ) {
4875- LinearLayout multireddits_area = headerMain .findViewById (R .id .multireddits_area );
4856+ LinearLayout multiredditsArea = headerMain .findViewById (R .id .expand_multireddits );
48764857
48774858 for (MultiReddit multiReddit : UserSubscriptions .multireddits ) {
48784859 final View t =
4879- getLayoutInflater ().inflate (R .layout .multireddit_textview_white , multireddits_area ,
4860+ getLayoutInflater ().inflate (R .layout .multireddit_textview_white , multiredditsArea ,
48804861 false );
48814862 ((TextView ) t .findViewById (R .id .name )).setText (multiReddit .getDisplayName ());
48824863
@@ -4887,7 +4868,7 @@ protected void onPostExecute(Void aVoid) {
48874868 startActivity (intent );
48884869 });
48894870
4890- multireddits_area .addView (t );
4871+ multiredditsArea .addView (t );
48914872 }
48924873 }
48934874 }
0 commit comments