Merge branch 'fix-519--crash-during-swap' into 'master'

Partially revert f2212e33. Make some constructors public again.

There is some code in the Android SDK using reflection to find the constructor
of one of our custom views. As such, a previous change in f2212e33 broke this
code because it made constructors package local. This partially reverts the bit
of f2212e33 which pertains to the constructors accessed using reflection.

Fixes #519.

See merge request !187
This commit is contained in:
Daniel Martí 2016-01-03 01:03:14 +00:00
commit c2c8c55862

View File

@ -43,20 +43,20 @@ public class SelectAppsView extends ListView implements
LoaderManager.LoaderCallbacks<Cursor>, LoaderManager.LoaderCallbacks<Cursor>,
SearchView.OnQueryTextListener { SearchView.OnQueryTextListener {
SelectAppsView(Context context) { public SelectAppsView(Context context) {
super(context); super(context);
} }
SelectAppsView(Context context, AttributeSet attrs) { public SelectAppsView(Context context, AttributeSet attrs) {
super(context, attrs); super(context, attrs);
} }
SelectAppsView(Context context, AttributeSet attrs, int defStyleAttr) { public SelectAppsView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr); super(context, attrs, defStyleAttr);
} }
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @TargetApi(Build.VERSION_CODES.LOLLIPOP)
SelectAppsView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { public SelectAppsView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes); super(context, attrs, defStyleAttr, defStyleRes);
} }