small sA fixes (#122)

* small sA fixes

* small fixes

* remove suppress
This commit is contained in:
nbnbbs 2018-04-03 13:09:52 +03:00 committed by GitHub
parent b06a1232b7
commit ed7cd8bd42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -84,7 +84,7 @@ public class ViewControllerFragment<TActivity extends FragmentActivity, TState e
parcel = Parcel.obtain(); parcel = Parcel.obtain();
parcel.unmarshall(serializableBytes, 0, serializableBytes.length); parcel.unmarshall(serializableBytes, 0, serializableBytes.length);
parcel.setDataPosition(0); parcel.setDataPosition(0);
final T result = parcel.readParcelable(parcelable.getClass().getClassLoader()); final T result = parcel.readParcelable(Thread.currentThread().getContextClassLoader());
parcel.recycle(); parcel.recycle();
return result; return result;
} }
@ -331,10 +331,10 @@ public class ViewControllerFragment<TActivity extends FragmentActivity, TState e
} }
private static class ActivityResult { private static class ActivityResult {
final int requestCode; public final int requestCode;
final int resultCode; public final int resultCode;
@Nullable @Nullable
final Intent data; public final Intent data;
ActivityResult(final int requestCode, final int resultCode, @Nullable final Intent data) { ActivityResult(final int requestCode, final int resultCode, @Nullable final Intent data) {
this.requestCode = requestCode; this.requestCode = requestCode;

View File

@ -221,8 +221,8 @@ public class ViewController<
/** /**
* Returns a color state list associated with a particular resource ID. * Returns a color state list associated with a particular resource ID.
* <p> *
* Starting in {@link android.os.Build.VERSION_CODES#M}, the returned * <p>Starting in {@link android.os.Build.VERSION_CODES#M}, the returned
* color state list will be styled for the specified Context's theme. * color state list will be styled for the specified Context's theme.
* *
* @param resId The desired resource identifier, as generated by the aapt * @param resId The desired resource identifier, as generated by the aapt