-
-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove legacy Java ApiClient #4457
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
import org.jellyfin.androidtv.ui.livetv.LiveTvGuide; | ||
import org.jellyfin.androidtv.ui.livetv.TvManager; | ||
import org.jellyfin.androidtv.util.Utils; | ||
import org.jellyfin.androidtv.util.apiclient.EmptyLifecycleAwareResponse; | ||
import org.jellyfin.androidtv.util.apiclient.EmptyResponse; | ||
import org.jellyfin.sdk.model.api.BaseItemDto; | ||
import org.koin.java.KoinJavaComponent; | ||
|
||
|
@@ -48,13 +48,13 @@ | |
private Button mFirstButton; | ||
private Button mSeriesSettingsButton; | ||
|
||
private EmptyLifecycleAwareResponse mTuneAction; | ||
private EmptyResponse mTuneAction; | ||
|
||
private View mAnchor; | ||
private int mPosLeft; | ||
private int mPosTop; | ||
|
||
public LiveProgramDetailPopup(Context context, LifecycleOwner lifecycleOwner, LiveTvGuide tvGuide, int width, EmptyLifecycleAwareResponse tuneAction) { | ||
public LiveProgramDetailPopup(Context context, LifecycleOwner lifecycleOwner, LiveTvGuide tvGuide, int width, EmptyResponse tuneAction) { | ||
Check notice Code scanning / Android Lint Unknown nullness Note
Unknown nullability; explicitly declare as @Nullable or @NonNull to improve Kotlin interoperability; see https://developer.android.com/kotlin/interop#nullability_annotations
Check notice Code scanning / Android Lint Unknown nullness Note
Unknown nullability; explicitly declare as @Nullable or @NonNull to improve Kotlin interoperability; see https://developer.android.com/kotlin/interop#nullability_annotations
Check warning Code scanning / Android Lint Lambda Parameters Last Warning
Functional interface parameters (such as parameter 2, "lifecycleOwner", in org.jellyfin.androidtv.ui.LiveProgramDetailPopup.LiveProgramDetailPopup) should be last to improve Kotlin interoperability; see https://kotlinlang.org/docs/reference/java-interop.html#sam-conversions
Check notice Code scanning / Android Lint Unknown nullness Note
Unknown nullability; explicitly declare as @Nullable or @NonNull to improve Kotlin interoperability; see https://developer.android.com/kotlin/interop#nullability_annotations
|
||
mContext = context; | ||
lifecycle = lifecycleOwner.getLifecycle(); | ||
mTvGuide = tvGuide; | ||
|
@@ -247,7 +247,7 @@ | |
tune.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
if (mTuneAction != null && mTuneAction.getActive()) mTuneAction.onResponse(); | ||
if (mTuneAction != null) mTuneAction.onResponse(); | ||
mPopup.dismiss(); | ||
} | ||
}); | ||
|
Check notice
Code scanning / Android Lint
Unknown nullness Note