-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
- Loading branch information
Showing
6 changed files
with
40 additions
and
27 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
21 changes: 0 additions & 21 deletions
21
app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DisclaimerActivity.kt
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DisclaimerFragment.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,23 @@ | ||
package org.ole.planet.myplanet.ui.dashboard | ||
|
||
import android.os.Build | ||
import android.os.Bundle | ||
import android.text.Html | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import androidx.annotation.RequiresApi | ||
import androidx.core.text.HtmlCompat | ||
import androidx.fragment.app.Fragment | ||
import org.ole.planet.myplanet.databinding.FragmentDisclaimerBinding | ||
import org.ole.planet.myplanet.utilities.Constants | ||
|
||
class DisclaimerFragment : Fragment() { | ||
private lateinit var fragmentDisclaimerBinding: FragmentDisclaimerBinding | ||
@RequiresApi(Build.VERSION_CODES.N) | ||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { | ||
fragmentDisclaimerBinding = FragmentDisclaimerBinding.inflate(inflater, container, false) | ||
fragmentDisclaimerBinding.tvDisclaimer.text = Html.fromHtml(getString(Constants.DISCLAIMER), HtmlCompat.FROM_HTML_MODE_LEGACY) | ||
return fragmentDisclaimerBinding.root | ||
} | ||
} |
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,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:padding="@dimen/padding_normal" | ||
tools:context=".ui.dashboard.DisclaimerFragment"> | ||
|
||
<TextView | ||
android:id="@+id/tv_disclaimer" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:textColor="@color/md_black_1000" /> | ||
</androidx.core.widget.NestedScrollView> |