@@ -444,6 +444,15 @@ class TopicListController @Inject constructor(
444
444
return TimeUnit .MILLISECONDS .toDays(oppiaClock.getCurrentTimeMs() - this .lastPlayedTimestamp)
445
445
}
446
446
447
+ private val REAL_PLACE_VALUES_TOPIC_ID = " iX9kYCjnouWN"
448
+ private val REAL_MULTIPLICATION_TOPIC_ID = " C4fqwrvqWpRm"
449
+ private val REAL_FRACTIONS_TOPIC_ID = " 0abdeaJhmfPm"
450
+ private val REAL_RATIOS_TOPIC_ID = " 5g0nxGUmx5J5"
451
+
452
+ // Not yet released/available to the app (and thus shouldn't be dependencies below since they can't be played).
453
+ private val REAL_DIVISION_TOPIC_ID = " qW12maD4hiA8"
454
+ private val REAL_ADDITION_AND_SUBTRACTION_TOPIC_ID = " sWBXKH4PZcK6"
455
+
447
456
// TODO(#2550): Remove hardcoded order of topics. Compute list of suggested stories from backend structures
448
457
/* *
449
458
* Returns a list of topic IDs for which the specified topic ID expects to be completed before
@@ -453,17 +462,19 @@ class TopicListController @Inject constructor(
453
462
// The comments describe the correct dependencies, but those might not be available until the
454
463
// topic is introduced into the app.
455
464
return when (topicId) {
456
- // TEST_TOPIC_ID_0 (depends on Fractions)
457
- TEST_TOPIC_ID_0 -> listOf (FRACTIONS_TOPIC_ID )
458
- // TEST_TOPIC_ID_1 (depends on TEST_TOPIC_ID_0,Ratios)
459
- TEST_TOPIC_ID_1 -> listOf (TEST_TOPIC_ID_0 , RATIOS_TOPIC_ID )
465
+ // Place values depends on nothing since it's the first set of lessons to play.
466
+ REAL_PLACE_VALUES_TOPIC_ID -> listOf ()
460
467
// Fractions (depends on A+S, Multiplication, Division)
461
- FRACTIONS_TOPIC_ID -> listOf ()
468
+ REAL_FRACTIONS_TOPIC_ID -> listOf (REAL_MULTIPLICATION_TOPIC_ID )
462
469
// Ratios (depends on A+S, Multiplication, Division)
463
- RATIOS_TOPIC_ID -> listOf ()
470
+ REAL_RATIOS_TOPIC_ID -> listOf (REAL_MULTIPLICATION_TOPIC_ID )
464
471
// Addition and Subtraction (depends on Place Values)
465
- // Multiplication (depends on Addition and Subtraction)
472
+ REAL_ADDITION_AND_SUBTRACTION_TOPIC_ID -> listOf (REAL_PLACE_VALUES_TOPIC_ID )
473
+ // Multiplication (depends on Addition and Subtraction); depend instead on Place Values as a
474
+ // poor proxy for A+S since that topic isn't yet available in the app.
475
+ REAL_MULTIPLICATION_TOPIC_ID -> listOf (REAL_PLACE_VALUES_TOPIC_ID )
466
476
// Division (depends on Multiplication)
477
+ REAL_DIVISION_TOPIC_ID -> listOf (REAL_MULTIPLICATION_TOPIC_ID )
467
478
// Expressions and Equations (depends on A+S, Multiplication, Division)
468
479
// Decimals (depends on A+S, Multiplication, Division)
469
480
else -> listOf ()
0 commit comments