Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbfc0931 authored by Hasib Prince's avatar Hasib Prince
Browse files

initial UI implementation

parent 9251c8a3
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
package foundation.e.apps.data

class ParentalControlRepository {
}
 No newline at end of file
+8 −0
Original line number Diff line number Diff line
@@ -233,6 +233,14 @@ class ApplicationFragment : TimeoutFragment(R.layout.fragment_application) {
        stopLoadingUI()

        collectState()

        binding.titleInclude.nsfwMessage.setOnClickListener {
            ApplicationDialogFragment(
                title = getString(R.string.nsfw_dialog_title),
                message = getString(R.string.nsfw_dialog_message),
                drawableResId = R.drawable.visibility_off
            ).show(childFragmentManager, TAG)
        }
    }

    private fun collectState() {
+313 B
Loading image diff...
+9 −1
Original line number Diff line number Diff line
@@ -74,7 +74,15 @@

        </LinearLayout>
    </LinearLayout>

    <TextView
        android:id="@+id/nsfwMessage"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/message_inappropriate_content"
        android:textSize="14sp"
        android:layout_marginStart="12dp"
        android:textColor="#99000000"
        app:drawableStartCompat="@drawable/visibility_off" />
    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
+3 −0
Original line number Diff line number Diff line
@@ -124,6 +124,7 @@
    <string name="having_troubles">Having troubles?</string>
    <string name="troubleshootURL" translatable="false">https://doc.e.foundation/support-topics/app_lounge_troubleshooting</string>
    <string name="share">Share</string>
    <string name="message_inappropriate_content">This app may contain inappropriate content.</string>

    <!-- Updates Fragment -->
    <string name="update_all">Update All</string>
@@ -223,4 +224,6 @@
    <string name="notification_channel_desc">Split Install channel</string>
    <string name="sign_in">Sign in</string>
    <string name="ignore">Ignore</string>
    <string name="nsfw_dialog_title">Content Warning</string>
    <string name="nsfw_dialog_message">The app may contain nudity, profanity, slurs, violence, intense sexuality, political incorrectness, or other potentially disturbing subject matter. This is especially relevant in environments like workplaces, schools, religious and family settings.</string>
</resources>
 No newline at end of file