,
This commit is contained in:
12
.idea/deploymentTargetDropDown.xml
generated
12
.idea/deploymentTargetDropDown.xml
generated
@@ -1,18 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="deploymentTargetDropDown">
|
||||
<runningDeviceTargetSelectedWithDropDown>
|
||||
<Target>
|
||||
<type value="RUNNING_DEVICE_TARGET" />
|
||||
<deviceKey>
|
||||
<Key>
|
||||
<type value="SERIAL_NUMBER" />
|
||||
<value value="RZCW41EJRPN" />
|
||||
</Key>
|
||||
</deviceKey>
|
||||
</Target>
|
||||
</runningDeviceTargetSelectedWithDropDown>
|
||||
<timeTargetWasSelectedWithDropDown value="2023-11-23T10:08:41.512769Z" />
|
||||
<targetsSelectedWithDialog>
|
||||
<Target>
|
||||
<type value="QUICK_BOOT_TARGET" />
|
||||
|
||||
@@ -43,8 +43,6 @@ import java.util.List;
|
||||
|
||||
public class FUAActivity extends AppCompatActivity {
|
||||
|
||||
private static final String TAG = "aditya";
|
||||
|
||||
SwitchCompat swBlock;
|
||||
RecyclerView rvApps, rvWhiteApps;
|
||||
MyAppsAdapter adapter, whiteListAdapter;
|
||||
|
||||
@@ -7,7 +7,7 @@ class ArticleCategory{
|
||||
|
||||
public class ArticleResult{
|
||||
public int id;
|
||||
public String article_category_xid;
|
||||
public int article_category_xid;
|
||||
public String article_title;
|
||||
public String article_detail;
|
||||
public String article_link;
|
||||
@@ -16,10 +16,10 @@ public class ArticleResult{
|
||||
public String small_image;
|
||||
public String large_image;
|
||||
public String tags;
|
||||
public String active;
|
||||
public int active;
|
||||
public String deleted_at;
|
||||
public String created_by;
|
||||
public String updated_by;
|
||||
public int created_by;
|
||||
public int updated_by;
|
||||
public String created_at;
|
||||
public String updated_at;
|
||||
public String article_author_img;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.app.simplitend.patient_dashboard.fragments;
|
||||
|
||||
import static com.app.simplitend.appblocking.FUAActivity.IS_FROM_DASHBOARD;
|
||||
import static com.app.simplitend.caregiverdashboard.activities.EditProfileInfoActivity.IS_FROM_PATIENT;
|
||||
import static com.app.simplitend.caregiverdashboard.activities.PatientProfileShowerActivity.ACTIVITY_F;
|
||||
import static com.app.simplitend.caregiverdashboard.activities.PatientProfileShowerActivity.CONTACTS_F;
|
||||
@@ -8,8 +9,11 @@ import static com.app.simplitend.caregiverdashboard.activities.PatientProfileSho
|
||||
import static com.app.simplitend.caregiverdashboard.activities.PatientProfileShowerActivity.WHICH_FRAGMENT;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
import android.content.Intent;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.provider.Settings;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
@@ -30,6 +34,8 @@ import com.app.simplitend.patient_dashboard.PatSettingsActivity;
|
||||
import com.app.simplitend.welcome.welcomepatient.mvvm.models.PatientData;
|
||||
import com.bumptech.glide.Glide;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
public class PatientProfileInfoFragment extends Fragment {
|
||||
|
||||
private ActivityPatProfileInfoBinding binding;
|
||||
@@ -107,8 +113,23 @@ public class PatientProfileInfoFragment extends Fragment {
|
||||
});
|
||||
|
||||
binding.freqUsedApps.setOnClickListener(v -> {
|
||||
Intent intent = new Intent(requireActivity(), FUAActivity.class);
|
||||
startActivity(intent);
|
||||
if (!Settings.canDrawOverlays(requireContext()) && "xiaomi".equals(Build.MANUFACTURER.toLowerCase(Locale.ROOT))) {
|
||||
final Intent intent = new Intent("miui.intent.action.APP_PERM_EDITOR");
|
||||
intent.setClassName("com.miui.securitycenter",
|
||||
"com.miui.permcenter.permissions.PermissionsEditorActivity");
|
||||
intent.putExtra("extra_pkgname", requireActivity().getPackageName());
|
||||
|
||||
new AlertDialog.Builder(requireContext())
|
||||
.setTitle("Please Enable the additional permissions")
|
||||
.setMessage("You couldn't use App whitelisting feature unless you turn the following permissions on:\n\n1. Display pop-up windows\n2. Open new windows while running in the background")
|
||||
.setPositiveButton("Go to Settings", (dialog, which) -> startActivity(intent))
|
||||
.setNegativeButton("Cancel", ((dialogInterface, i) -> dialogInterface.dismiss()))
|
||||
.setIcon(android.R.drawable.ic_dialog_info)
|
||||
.show();
|
||||
}else{
|
||||
Intent intent = new Intent(requireActivity(), FUAActivity.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
|
||||
binding.editBtn.setOnClickListener(v -> {
|
||||
|
||||
@@ -9,14 +9,14 @@ public class Frequency {
|
||||
public String title;
|
||||
public String value;
|
||||
public String sort_order;
|
||||
public Object small_image_url;
|
||||
public Object large_image_url;
|
||||
public String small_image_url;
|
||||
public String large_image_url;
|
||||
public String active;
|
||||
public Object deleted_at;
|
||||
public Object created_by;
|
||||
public Object updated_by;
|
||||
public Object created_at;
|
||||
public Object updated_at;
|
||||
public String deleted_at;
|
||||
public String created_by;
|
||||
public String updated_by;
|
||||
public String created_at;
|
||||
public String updated_at;
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
|
||||
@@ -9,14 +9,14 @@ public class MedicationType implements Serializable {
|
||||
public String title;
|
||||
public String value;
|
||||
public String sort_order;
|
||||
public Object small_image_url;
|
||||
public Object large_image_url;
|
||||
public String small_image_url;
|
||||
public String large_image_url;
|
||||
public String active;
|
||||
public Object deleted_at;
|
||||
public Object created_by;
|
||||
public Object updated_by;
|
||||
public Object created_at;
|
||||
public Object updated_at;
|
||||
public String deleted_at;
|
||||
public String created_by;
|
||||
public String updated_by;
|
||||
public String created_at;
|
||||
public String updated_at;
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView 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"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
@@ -66,7 +65,6 @@
|
||||
android:drawableStart="@drawable/ic_diagnosis"
|
||||
android:drawablePadding="10dp"
|
||||
|
||||
android:autofillHints="name"
|
||||
android:inputType="text|textCapSentences"
|
||||
android:maxLines="1"
|
||||
|
||||
@@ -107,7 +105,6 @@
|
||||
android:drawableStart="@drawable/ic_stethoscope"
|
||||
android:drawablePadding="10dp"
|
||||
|
||||
android:autofillHints="name"
|
||||
android:inputType="textCapWords"
|
||||
|
||||
android:maxLength="50"
|
||||
@@ -242,7 +239,6 @@
|
||||
android:drawableStart="@drawable/ic_hosp"
|
||||
android:drawablePadding="10dp"
|
||||
|
||||
android:autofillHints="name"
|
||||
android:inputType="text|textCapWords"
|
||||
android:maxLines="1"
|
||||
|
||||
@@ -283,7 +279,6 @@
|
||||
android:drawableStart="@drawable/ic_allergy"
|
||||
android:drawablePadding="10dp"
|
||||
|
||||
android:autofillHints="name"
|
||||
android:inputType="text|textCapSentences"
|
||||
android:maxLines="1"
|
||||
|
||||
@@ -324,7 +319,6 @@
|
||||
android:drawableStart="@drawable/ic_diet_rest"
|
||||
android:drawablePadding="10dp"
|
||||
|
||||
android:autofillHints="name"
|
||||
android:inputType="textCapSentences"
|
||||
android:maxLines="1"
|
||||
|
||||
|
||||
@@ -58,7 +58,6 @@
|
||||
|
||||
android:layout_marginHorizontal="15dp"
|
||||
android:layout_marginVertical="10dp"
|
||||
android:autofillHints="name"
|
||||
|
||||
android:background="@drawable/edit_text_bg_2"
|
||||
android:drawableStart="@drawable/ic_routine"
|
||||
@@ -120,7 +119,6 @@
|
||||
|
||||
android:layout_marginHorizontal="15dp"
|
||||
android:layout_marginVertical="10dp"
|
||||
android:autofillHints="name"
|
||||
|
||||
android:background="@drawable/edit_text_bg_2"
|
||||
android:drawableStart="@drawable/ic_description"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_marginBottom="75dp"
|
||||
android:background="@color/white">
|
||||
|
||||
@@ -447,7 +448,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
android:text="@string/aditya_gaikwad"
|
||||
tools:text="@string/aditya_gaikwad"
|
||||
android:fontFamily="@font/nunito_regular"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/_12ssp"
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
android:layout_marginHorizontal="15dp"
|
||||
android:fontFamily="@font/nunito_medium"
|
||||
android:text="@string/medical_information"
|
||||
android:textAppearance="@style/TextAppearance.Material3.TitleLarge"
|
||||
android:textSize="@dimen/_16ssp"
|
||||
|
||||
android:gravity="top"
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
android:textAlignment="center"
|
||||
android:visibility="gone"
|
||||
|
||||
android:textAppearance="@style/TextAppearance.Material3.TitleLarge"
|
||||
android:textSize="@dimen/_16ssp"
|
||||
|
||||
android:textColor="@color/black" />
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/bar_1"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -152,8 +152,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img_diagnosis"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:contentDescription="@string/diagnosis"
|
||||
|
||||
app:srcCompat="@drawable/img_diagnosis"
|
||||
@@ -180,7 +180,7 @@
|
||||
|
||||
android:fontFamily="@font/nunito_semibold"
|
||||
android:text="@string/diagnosis"
|
||||
android:textAppearance="@style/TextAppearance.Material3.TitleLarge"
|
||||
android:textSize="@dimen/_16ssp"
|
||||
android:textColor="@color/black" />
|
||||
|
||||
<TextView
|
||||
@@ -229,8 +229,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img_doctor"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:contentDescription="@string/diagnosis"
|
||||
|
||||
app:srcCompat="@drawable/img_doctor"
|
||||
@@ -257,7 +257,7 @@
|
||||
|
||||
android:text="@string/primary_care_doctor"
|
||||
android:fontFamily="@font/nunito_semibold"
|
||||
android:textAppearance="@style/TextAppearance.Material3.TitleLarge"
|
||||
android:textSize="@dimen/_16ssp"
|
||||
android:textColor="@color/black"
|
||||
/>
|
||||
|
||||
@@ -307,8 +307,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img_doc_contact"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:contentDescription="@string/diagnosis"
|
||||
|
||||
app:srcCompat="@drawable/img_doc_contact"
|
||||
@@ -335,7 +335,7 @@
|
||||
|
||||
android:fontFamily="@font/nunito_semibold"
|
||||
android:text="@string/doctor_contact_number"
|
||||
android:textAppearance="@style/TextAppearance.Material3.TitleLarge"
|
||||
android:textSize="@dimen/_16ssp"
|
||||
android:textColor="@color/black" />
|
||||
|
||||
<TextView
|
||||
@@ -382,8 +382,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/hospital_pref_img"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:contentDescription="@string/diagnosis"
|
||||
|
||||
app:srcCompat="@drawable/img_hospital"
|
||||
@@ -410,7 +410,7 @@
|
||||
|
||||
android:fontFamily="@font/nunito_semibold"
|
||||
android:text="@string/hospital_preference"
|
||||
android:textAppearance="@style/TextAppearance.Material3.TitleLarge"
|
||||
android:textSize="@dimen/_16ssp"
|
||||
android:textColor="@color/black" />
|
||||
|
||||
<TextView
|
||||
@@ -454,8 +454,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/allergies_img"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_centerVertical="true"
|
||||
|
||||
android:layout_marginStart="5dp"
|
||||
@@ -481,7 +481,7 @@
|
||||
|
||||
android:fontFamily="@font/nunito_semibold"
|
||||
android:text="@string/allergies"
|
||||
android:textAppearance="@style/TextAppearance.Material3.TitleLarge"
|
||||
android:textSize="@dimen/_16ssp"
|
||||
android:textColor="@color/black" />
|
||||
|
||||
<TextView
|
||||
@@ -525,8 +525,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/diet_restrict_img"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_centerVertical="true"
|
||||
|
||||
android:layout_marginStart="5dp"
|
||||
@@ -552,7 +552,7 @@
|
||||
|
||||
android:fontFamily="@font/nunito_semibold"
|
||||
android:text="@string/diet_restriction"
|
||||
android:textAppearance="@style/TextAppearance.Material3.TitleLarge"
|
||||
android:textSize="@dimen/_16ssp"
|
||||
android:textColor="@color/black" />
|
||||
|
||||
<TextView
|
||||
@@ -602,8 +602,8 @@
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
android:id="@+id/add_med_info"
|
||||
android:visibility="gone"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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_marginBottom="75dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
@@ -68,7 +69,7 @@
|
||||
android:maxEms="10"
|
||||
android:maxLines="1"
|
||||
|
||||
android:text="@string/aditya_gaikwad"
|
||||
tools:text="@string/aditya_gaikwad"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/white"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user