forked from oppia/oppia-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix part of oppia#3600: Add tablet UI for FAQs and Third-party Depend…
…encies (oppia#3671) * Create ThirdPartyActivity * Fix lints * Fix actionbar issue * Add tests * Add KDocs * Add LicenseListActivity to Manifest * Fix LicenseListFragment * Add test cases * Add LicenseTextViewerFragment * Pass index to LicenseListFragment * Fix all the bugs * Fix lints * Add tests files for all activities and fragments * Fix lints * Add viewModels to BUILD.bazel * Correct path of files in exemptions file * Add suggested changes * Add suggested changes * Remove unused imports * Correct styles in xml * Optimize layouts * fix lints * Correct layout width * Add test cases for all files * Add an extra test case * Add more test cases * revert changes in ktlint_lint_check.sh * Add suggested changes * Add marquee effect * Try setting text directly from fragment. * Add code to preserve text format * Add more test cases in LicenseTextViewerFragmentTest.kt * Add label for LicenseTextViewerActivity * Add suggested changes * Use direct import for isRoot() * Add KDocs for TestApplicationComponent in Test files * Remove unused imports * Correct imports order * Fix Kdocs check * Add suggested changes * Add suggested changes * Fix failing test cases * Add interfaces to load fragments * Remove extra Kdocs and add test files to Kdoc exemptions * Add suggested changes * Replace original dependencies name with dummy text * create helplist item viewmodel * Add support for new UIs for FAQList and ThirdPartyDependencyList in tablets * Delete unwanted files * Fix nits * Add Listeners and ViewModels to BUILD.bazel * Add test cases and add test exemptions * Correct Bug * Correct import * Fix crashing after clicking item * Add suggested changes * Correct test case * Hide Back arrow by default * Correct test case * Add TAG suffix to fragment tags * Add suggested changes * Add minHeight * Add suggested changes * Add punctuation in KDoc * Correct name in test_file_exemptions.textproto
- Loading branch information
Showing
15 changed files
with
552 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
app/src/main/java/org/oppia/android/app/help/HelpViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.oppia.android.app.help | ||
|
||
import androidx.databinding.ObservableField | ||
import org.oppia.android.app.viewmodel.ObservableViewModel | ||
|
||
/** Option items view model for the recyclerView in [HelpFragment]. */ | ||
abstract class HelpViewModel : ObservableViewModel() { | ||
/** Indicates whether the device in use has a large screen & should be multi-pane. */ | ||
val isMultipane = ObservableField<Boolean>(false) | ||
} |
7 changes: 7 additions & 0 deletions
7
app/src/main/java/org/oppia/android/app/help/LoadFaqListFragmentListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.oppia.android.app.help | ||
|
||
/** Listener for when a selection should result to [FAQListFragment] in tablet devices. */ | ||
interface LoadFaqListFragmentListener { | ||
/** Called when the user wants to open the list of FAQs in tablet devices. */ | ||
fun loadFaqListFragment() | ||
} |
10 changes: 10 additions & 0 deletions
10
app/src/main/java/org/oppia/android/app/help/LoadThirdPartyDependencyListFragmentListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.oppia.android.app.help | ||
|
||
/** | ||
* Listener for when a selection should result to [ThirdPartyDependencyListFragment] in tablet | ||
* devices. | ||
*/ | ||
interface LoadThirdPartyDependencyListFragmentListener { | ||
/** Called when the user wants to open the list of third-party dependencies in tablet devices. */ | ||
fun loadThirdPartyDependencyListFragment() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<vector | ||
xmlns:android="http:https://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24.0" | ||
android:autoMirrored="true" | ||
android:viewportHeight="24.0"> | ||
<path | ||
android:fillColor="#333333" | ||
android:pathData="M20,11H7.83l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z"/> | ||
</vector> |
Oops, something went wrong.