oppia / oppia-android

A free, online & offline learning platform to make quality education accessible for all.
https://www.oppia.org
Apache License 2.0
311 stars 514 forks source link

[Feature Request]: Replace type-ambiguous (and now deprecated) Bundle calls #5405

Open BenHenning opened 4 months ago

BenHenning commented 4 months ago

Is your feature request related to a problem? Please describe.

API 33 (introduced in #5222) deprecated Bundle's generic methods:

5402 helped reveal which places need updating:

Describe the solution you'd like

Calls need to be replaced with either type-specific or BundleCompat calls, specifically:

Describe alternatives you've considered

None--BundleCompat must be used for cases when we do not know the type since the app has a minimum supported SDK of 21.

Additional context

The app generally uses Bundles in one of two cases:

All changes to fragments and activities need to be tested by:

Some special notes:

uphargaur commented 3 months ago

@adhiamboperes can i work on this issue

adhiamboperes commented 3 months ago

@uphargaur, Sure.

adhiamboperes commented 2 months ago

@uphargaur, are you still working on this?

uphargaur commented 2 months ago

Yes I am working on it, sorry for delay got my exams this week.

uphargaur commented 1 month ago

@adhiamboperes I tried working on it, but I’m finding it difficult to locate the data class.

For example, in the image below, I'm unable to identify which class to use for reference. Could you help me find that, or should I create a data class depending on the use case?

image

adhiamboperes commented 1 month ago

@uphargaur, I do not understand the question. What is data class in reference to?