Skip to content

Commit

Permalink
Hardcode Privacy Policy.
Browse files Browse the repository at this point in the history
Signed-off-by: GauthamAsir <[email protected]>
  • Loading branch information
GauthamAsir committed Apr 1, 2021
1 parent 15d1bb0 commit 8c19465
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ public boolean onOptionsItemSelected(@NonNull MenuItem item) {
return true;
case R.id.menu_privacyPolicy:
startActivity(new Intent(getApplicationContext(), PrivacyPolicy.class));
// Uri uri = Uri.parse("https://docs.google.com/document/d/1rSG7JRoBLVhW8asQkHj6s-eNXplWvtubqu1fMcEwB5U/edit?usp=sharing");
// Intent intent = new Intent(Intent.ACTION_VIEW, uri);
// startActivity(intent);
return true;
case R.id.menu_aboutUs:
startActivity(new Intent(getApplicationContext(), AboutUs.class));
Expand Down Expand Up @@ -202,6 +199,7 @@ public void onBackPressed() {
}
}

@SuppressLint("StaticFieldLeak")
private class GetLatestAppVersion extends AsyncTask {

@Override
Expand Down
32 changes: 32 additions & 0 deletions app/src/main/res/layout/activity_privacy_policy.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".PrivacyPolicy">

<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbarPolicy"
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar"
app:popupTheme="@style/PopupMenuStyle"
app:title="@string/privacy_policy"
app:titleTextColor="@color/white" />

<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">

<TextView
android:id="@+id/policy_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/_12sdp"
android:layout_marginVertical="@dimen/_6sdp" />

</androidx.core.widget.NestedScrollView>

</LinearLayout>

0 comments on commit 8c19465

Please sign in to comment.