Merge branch 'static-inner-class' into 'master'
Make some inner classes static See merge request fdroid/fdroidclient!633
This commit is contained in:
		
						commit
						6260c11efc
					
				@ -570,7 +570,7 @@ public class AppDetailsRecyclerViewAdapter
 | 
				
			|||||||
        super.onDetachedFromRecyclerView(recyclerView);
 | 
					        super.onDetachedFromRecyclerView(recyclerView);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private abstract class AppDetailsViewHolder extends RecyclerView.ViewHolder {
 | 
					    private abstract static class AppDetailsViewHolder extends RecyclerView.ViewHolder {
 | 
				
			||||||
        AppDetailsViewHolder(View itemView) {
 | 
					        AppDetailsViewHolder(View itemView) {
 | 
				
			||||||
            super(itemView);
 | 
					            super(itemView);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@ -664,7 +664,7 @@ public class AppDetailsRecyclerViewAdapter
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private abstract class ExpandableLinearLayoutViewHolder extends AppDetailsViewHolder {
 | 
					    private abstract static class ExpandableLinearLayoutViewHolder extends AppDetailsViewHolder {
 | 
				
			||||||
        final TextView headerView;
 | 
					        final TextView headerView;
 | 
				
			||||||
        final LinearLayout contentView;
 | 
					        final LinearLayout contentView;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -66,7 +66,7 @@ public class ScreenShotsActivity extends AppCompatActivity {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private class ScreenShotPagerAdapter extends FragmentStatePagerAdapter {
 | 
					    private static class ScreenShotPagerAdapter extends FragmentStatePagerAdapter {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        private final String[] screenshots;
 | 
					        private final String[] screenshots;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -133,7 +133,7 @@ public class ScreenShotsActivity extends AppCompatActivity {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @TargetApi(11)
 | 
					    @TargetApi(11)
 | 
				
			||||||
    public class DepthPageTransformer implements ViewPager.PageTransformer {
 | 
					    public static class DepthPageTransformer implements ViewPager.PageTransformer {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public void transformPage(View view, float position) {
 | 
					        public void transformPage(View view, float position) {
 | 
				
			||||||
            int pageWidth = view.getWidth();
 | 
					            int pageWidth = view.getWidth();
 | 
				
			||||||
 | 
				
			|||||||
@ -112,7 +112,7 @@ public class WhatsNewAdapter extends RecyclerView.Adapter<AppCardController> {
 | 
				
			|||||||
     * @see org.fdroid.fdroid.R.dimen#whats_new__padding__app_card__horizontal
 | 
					     * @see org.fdroid.fdroid.R.dimen#whats_new__padding__app_card__horizontal
 | 
				
			||||||
     * @see org.fdroid.fdroid.R.dimen#whats_new__padding__app_card__vertical
 | 
					     * @see org.fdroid.fdroid.R.dimen#whats_new__padding__app_card__vertical
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    private class ItemDecorator extends RecyclerView.ItemDecoration {
 | 
					    private static class ItemDecorator extends RecyclerView.ItemDecoration {
 | 
				
			||||||
        private final Context context;
 | 
					        private final Context context;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        ItemDecorator(Context context) {
 | 
					        ItemDecorator(Context context) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user