+
+
+
+
+ Privacy Policy
+
+
+
+Privacy Policy
+We provide this Privacy Policy to help you understand how we collect, use, and disclose information, including what you may provide to us or that we obtain from our products and services. We treat your privacy very seriously. Your privacy is important to us.
+
+Information Collection and Use
+For a better experience, while using our Service, we may require you to provide us with certain personally identifiable information such as users' name, address, location, pictures. The information that we request will be retained on your device and is not collected by us in any way retained by us and used as described in this privacy policy.
+The app does use third-party services that may collect information used to identify you.
+Please refer to the privacy policy of the third-party service provider used by the application:
+
+ - Google Play Services
+ - Google Analytics for Firebase
+ - Firebase Crashlytics
+ - Unity
+ - AppLovin
+ - Vungle
+
+
+Log Data
+We want to inform you that whenever you use our Service, in the case of an error in the app, we collect data and information (through third-party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol (“IP”) address, device name, operating system version, the configuration of the app when utilizing our Service, the time and date of your use of the Service, and other statistics.
+
+Cookies
+Cookies are files with a small amount of data that are commonly used as anonymous unique identifiers. These are sent to your browser from the websites that you visit and are stored on your device's internal memory. This Service does not use these “cookies” explicitly. However, the app may use third-party code and libraries that use “cookies” to collect information and improve their services. You have the option to either accept or refuse these cookies and know when a cookie is being sent to your device. If you choose to refuse our cookies, you may not be able to use some portions of this Service.
+
+Service Providers
+We may employ third-party companies and individuals due to the following reasons:
+
+ - To facilitate our Service;
+ - To provide the Service on our behalf;
+ - To perform Service-related services; or
+ - To assist us in analyzing how our Service is used.
+
+We want to inform users of this Service that these third parties have access to their Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they are obligated not to disclose or use the information for any other purpose.
+
+Security
+We value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and we cannot guarantee its absolute security.
+
+Links to Other Sites
+This Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by us. Therefore, we strongly advise you to review the Privacy Policy of these websites. We have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services.
+
+Children’s Privacy
+These Services do not address anyone under the age of 13. We do not knowingly collect personally identifiable information from children under 13 years of age. In the case we discover that a child under 13 has provided us with personal information, we immediately delete this from our servers. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact us so that we will be able to take the necessary actions.
+
+Changes to This Privacy Policy
+We may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. We will notify you of any changes by posting the new Privacy Policy on this page.
+
+Privacy Questions
+We may update our Privacy Policy from time to time. When we change the policy in a material way, a notice will be posted on our website along with the updated Privacy Policy.
+If you have any questions or concerns about our Privacy Policy or data processing, please contact us: amithchamara832@gmail.com.
+
+
diff --git a/app/src/main/assets/privacy.html b/app/src/main/assets/privacy.html
deleted file mode 100644
index 0c837d5..0000000
--- a/app/src/main/assets/privacy.html
+++ /dev/null
@@ -1,86 +0,0 @@
-
-
-
-
-
- Privacy Policy
-
-
-
- Privacy Policy
- Date: August 14, 2024
-
- We provide this Privacy Policy to help you understand how we collect, use, and disclose information, including what you may provide to us or that we obtain from our products and services. We treat your privacy very seriously. Your privacy is important to us.
-
- Information Collection and Use
- For a better experience, while using our Service, we may require you to provide us with certain personally identifiable information, such as users' name, address, location, pictures, etc. The information that we request will be retained on your device and is not collected or retained by us in any way and used as described in this privacy policy.
- The app does use third-party services that may collect information used to identify you.
- Please refer to the privacy policy of the third-party service provider used by the application:
-
- - Google Play Services
- - Google Analytics for Firebase
- - Firebase Crashlytics
- - Unity
- - AppLovin
- - Pangle
- - Mintegral
- - Bigo
- - Ironsource
- - Vungle
-
-
- Log Data
- We want to inform you that whenever you use our Service, in case of an error in the app, we collect data and information (through third-party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol (“IP”) address, device name, operating system version, the configuration of the app when utilizing our Service, the time and date of your use of the Service, and other statistics.
-
- Cookies
- Cookies are files with a small amount of data that are commonly used as anonymous unique identifiers. These are sent to your browser from the websites that you visit and are stored on your device's internal memory.
- This Service does not use these “cookies” explicitly. However, the app may use third-party code and libraries that use “cookies” to collect information and improve their services. You have the option to either accept or refuse these cookies and know when a cookie is being sent to your device. If you choose to refuse our cookies, you may not be able to use some portions of this Service.
-
- Service Providers
- We may employ third-party companies and individuals due to the following reasons:
-
- - To facilitate our Service
- - To provide the Service on our behalf
- - To perform Service-related services, or
- - To assist us in analyzing how our Service is used
-
- We want to inform users of this Service that these third parties have access to their Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they are obligated not to disclose or use the information for any other purpose.
-
- Security
- We value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and we cannot guarantee its absolute security.
-
- Links to Other Sites
- This Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by us. Therefore, we strongly advise you to review the Privacy Policy of these websites. We have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services.
-
- Children’s Privacy
- These Services do not address anyone under the age of 13. We do not knowingly collect personally identifiable information from children under 13 years of age. In the case we discover that a child under 13 has provided us with personal information, we will immediately delete this from our servers. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact us so that we will be able to take the necessary actions.
-
- Changes to This Privacy Policy
- We may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. We will notify you of any changes by posting the new Privacy Policy on this page.
-
- Privacy Questions
- We may update the Privacy Policy from time to time. When we change the policy in a material way, a notice will be posted on our website along with the updated Privacy Policy.
- If you have any questions or concerns about our Privacy Policy or data processing, please contact us: saleemjeeta2@gmail.com.
-
-
diff --git a/app/src/main/java/com/example/applock/DrawView/InPutKeyView.java b/app/src/main/java/com/example/applock/DrawView/InPutKeyView.java
index 0b03766..c244e5f 100644
--- a/app/src/main/java/com/example/applock/DrawView/InPutKeyView.java
+++ b/app/src/main/java/com/example/applock/DrawView/InPutKeyView.java
@@ -12,6 +12,7 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.example.applock.R;
+import com.example.applock.application.SoftWareLockApplication;
import com.example.applock.click.ButtomKeyClick;
import com.example.applock.listener.InputKeyListener;
import com.example.applock.lockadapter.ButtomAdapter;
@@ -62,10 +63,10 @@ public class InPutKeyView extends FrameLayout {
public void OnKeyClick(String bottomkey) {
if (my_top_key.length() >= keylength) {
my_top_key.delete(0, my_top_key.length());
- Log.d("dhn","-------fin"+my_top_key.length());
+ Log.d(SoftWareLockApplication.TAG,"-------fin"+my_top_key.length());
}
my_top_key.append(bottomkey);
- Log.d("dhn","-------fin"+my_top_key.length());
+ Log.d(SoftWareLockApplication.TAG,"-------fin"+my_top_key.length());
topAdapter.updateItem(my_top_key.toString());
if (my_top_key.length() == keylength) {
inputKeyListener.onInputComplete(my_top_key.toString());
diff --git a/app/src/main/java/com/example/applock/activity/IntoActivity.java b/app/src/main/java/com/example/applock/activity/IntoActivity.java
index a7280b1..2bc0672 100644
--- a/app/src/main/java/com/example/applock/activity/IntoActivity.java
+++ b/app/src/main/java/com/example/applock/activity/IntoActivity.java
@@ -30,9 +30,10 @@ public class IntoActivity extends AppCompatActivity {
private CountDownTimer countDownTimer;
private List ads;
private boolean isAlreadyShow = false;
- private float i = 0;
private AppEntity entity;
private CustomProgressBar customProgressBar;
+
+ private long countTime = 13100;
private String lockpackname = MyAllValues.softWareLockApplication.getPackageName();
@SuppressLint("MissingInflatedId")
@@ -44,11 +45,12 @@ public class IntoActivity extends AppCompatActivity {
customProgressBar = findViewById(R.id.splash_pg);
ads = SoftWareLockApplication.lodAd();
- countDownTimer = new CountDownTimer(10100, 100) {
+ countDownTimer = new CountDownTimer(countTime, 100) {
@Override
public void onTick(long millisUntilFinished) {
- i++;
- customProgressBar.setProgress(i);
+ float percentage = 100 - (float)millisUntilFinished / countTime * 100;
+ int round = (int)percentage;
+ customProgressBar.setProgress(round);
if (!isAlreadyShow) {
showAd(false);
}
@@ -61,7 +63,7 @@ public class IntoActivity extends AppCompatActivity {
}
}
};
- gocount();
+ countDownTimer.start();
}
@@ -92,12 +94,6 @@ public class IntoActivity extends AppCompatActivity {
});
mInterstitialAd.show(this);
}
-
-
- }
-
- private void gocount() {
- countDownTimer.start();
}
public void intoActivity() {
diff --git a/app/src/main/java/com/example/applock/activity/KeyWordActivity.java b/app/src/main/java/com/example/applock/activity/KeyWordActivity.java
index c183bf0..2547a27 100644
--- a/app/src/main/java/com/example/applock/activity/KeyWordActivity.java
+++ b/app/src/main/java/com/example/applock/activity/KeyWordActivity.java
@@ -47,6 +47,7 @@ public class KeyWordActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
MyKeyPage = getIntent().getIntExtra(MyAllValues.PASS_KEY_WORD, 0);
+ Mytool.getAllAd();
setContentView(R.layout.activity_key_word);
ads = SoftWareLockApplication.lodAd();
text_page = findViewById(R.id.text_page);
@@ -179,11 +180,7 @@ public class KeyWordActivity extends AppCompatActivity {
});
}
- private void resetPin() {
- Datamanager.setTopKey(fistkey);
- Toast.makeText(KeyWordActivity.this, getString(R.string.reset_success), Toast.LENGTH_SHORT).show();
- showAd();
- }
+
private void showAd() {
ATInterstitial mInterstitialAd = Mytool.onCache(ads);
diff --git a/app/src/main/java/com/example/applock/activity/MainActivity.java b/app/src/main/java/com/example/applock/activity/MainActivity.java
index 217dac7..6e11d3d 100644
--- a/app/src/main/java/com/example/applock/activity/MainActivity.java
+++ b/app/src/main/java/com/example/applock/activity/MainActivity.java
@@ -4,6 +4,7 @@ import android.annotation.SuppressLint;
import android.content.Intent;
import android.graphics.PorterDuff;
import android.os.Bundle;
+import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
@@ -19,6 +20,7 @@ import com.example.applock.R;
import com.example.applock.allmanager.LockAction;
import com.example.applock.allmanager.SoftLockPermission;
import com.example.applock.allmanager.SoftWarePerssionDialog;
+import com.example.applock.application.SoftWareLockApplication;
import com.example.applock.lockadapter.FragmentAdapter;
import com.example.applock.roombase.SoftWareLockRoom;
import com.example.applock.value.MyAllValues;
@@ -75,8 +77,11 @@ public class MainActivity extends AppCompatActivity implements PermissionBtnList
getPermission();
}
-
-
+ @Override
+ protected void onResume() {
+ super.onResume();
+ Log.d(SoftWareLockApplication.TAG,"======onResume");
+ }
private void setViewPaper() {
int tabIconColor = ContextCompat.getColor(MainActivity.this, R.color.table_unselect);
diff --git a/app/src/main/java/com/example/applock/activity/PrivacyActivity.kt b/app/src/main/java/com/example/applock/activity/PrivacyActivity.kt
new file mode 100644
index 0000000..66cecfd
--- /dev/null
+++ b/app/src/main/java/com/example/applock/activity/PrivacyActivity.kt
@@ -0,0 +1,24 @@
+package com.example.applock.activity
+
+import android.os.Bundle
+import androidx.appcompat.app.AppCompatActivity
+import com.example.applock.databinding.ActivityPrivacyBinding
+import com.example.applock.value.Mytool
+
+
+class PrivacyActivity : AppCompatActivity() {
+
+ private lateinit var vb: ActivityPrivacyBinding
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ vb = ActivityPrivacyBinding.inflate(layoutInflater)
+ Mytool.getAllAd()
+ setContentView(vb.root)
+ vb.webView.loadUrl("file:///android_asset/SoftWare_Lock_privacy.html")
+ vb.back.setOnClickListener {
+ finish()
+ }
+
+ }
+
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/applock/activity/SearchActivity.java b/app/src/main/java/com/example/applock/activity/SearchActivity.java
index 88ee8c5..9c358a5 100644
--- a/app/src/main/java/com/example/applock/activity/SearchActivity.java
+++ b/app/src/main/java/com/example/applock/activity/SearchActivity.java
@@ -40,6 +40,7 @@ public class SearchActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_search);
+ Mytool.getAllAd();
recycle_search = findViewById(R.id.recycle_search);
search_text = findViewById(R.id.search_text);
start_search = findViewById(R.id.start_search);
diff --git a/app/src/main/java/com/example/applock/activity/SettingActivity.java b/app/src/main/java/com/example/applock/activity/SettingActivity.java
index 3dff797..097d977 100644
--- a/app/src/main/java/com/example/applock/activity/SettingActivity.java
+++ b/app/src/main/java/com/example/applock/activity/SettingActivity.java
@@ -17,6 +17,8 @@ import androidx.core.view.WindowInsetsCompat;
import com.example.applock.R;
import com.example.applock.allmanager.AppManager;
import com.example.applock.value.MyAllValues;
+import com.example.applock.value.Mytool;
+import com.example.applock.value.onActionCallback;
public class SettingActivity extends AppCompatActivity {
@@ -30,6 +32,7 @@ public class SettingActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_setting);
+ Mytool.getAllAd();
gotofindview();
onMyClick();
}
@@ -43,7 +46,7 @@ public class SettingActivity extends AppCompatActivity {
version_text = findViewById(R.id.version_text);
String appVersions = AppManager.getAppVersions(this);
if (appVersions == null) {
- version_text.setText("V1.0.0");
+ version_text.setText("V1.0.3");
} else {
String format = String.format(getString(R.string.app_lock_version), appVersions);
version_text.setText(format);
@@ -60,11 +63,17 @@ public class SettingActivity extends AppCompatActivity {
reset_password.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
- Intent intent = new Intent(SettingActivity.this, KeyWordActivity.class);
- intent.putExtra(MyAllValues.PASS_KEY_FROM,2);
- intent.putExtra(MyAllValues.PASS_KEY_WORD,2);
- startActivity(intent);
- finish();
+ Mytool.showAd(SettingActivity.this, new onActionCallback() {
+ @Override
+ public void onAction() {
+ Intent intent = new Intent(SettingActivity.this, KeyWordActivity.class);
+ intent.putExtra(MyAllValues.PASS_KEY_FROM,2);
+ intent.putExtra(MyAllValues.PASS_KEY_WORD,2);
+ startActivity(intent);
+ finish();
+ }
+ });
+
}
});
app_share.setOnClickListener(new View.OnClickListener() {
@@ -89,9 +98,7 @@ public class SettingActivity extends AppCompatActivity {
privacy_policy.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
- String path = getString(R.string.privacy);
- Intent intent = new Intent(Intent.ACTION_VIEW);
- intent.setData(Uri.parse(path));
+ Intent intent = new Intent(SettingActivity.this,PrivacyActivity.class);
startActivity(intent);
}
});
diff --git a/app/src/main/java/com/example/applock/application/SoftWareLockApplication.java b/app/src/main/java/com/example/applock/application/SoftWareLockApplication.java
index 4ab4d9e..8bdb5b0 100644
--- a/app/src/main/java/com/example/applock/application/SoftWareLockApplication.java
+++ b/app/src/main/java/com/example/applock/application/SoftWareLockApplication.java
@@ -33,7 +33,7 @@ public class SoftWareLockApplication extends Application {
public static SoftWareLockApplication app;
private static Context context;
public static int userOption =0;
- public static int userOption2 =0;
+ public static final String TAG = "===============";
@Override
public void onCreate() {
diff --git a/app/src/main/java/com/example/applock/fragment/LockedFragment.java b/app/src/main/java/com/example/applock/fragment/LockedFragment.java
index e91e845..cbb5418 100644
--- a/app/src/main/java/com/example/applock/fragment/LockedFragment.java
+++ b/app/src/main/java/com/example/applock/fragment/LockedFragment.java
@@ -4,19 +4,26 @@ import android.annotation.SuppressLint;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
+import androidx.lifecycle.Observer;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
+import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.applock.R;
+import com.example.applock.allmanager.MsgDialog;
+import com.example.applock.allmanager.SoftWarePerssionDialog;
+import com.example.applock.application.SoftWareLockApplication;
import com.example.applock.lockadapter.LockedAdapter;
+import com.example.applock.lockadapter.SystemAdapter;
import com.example.applock.lockadapter.ThirdAdapter;
import com.example.applock.roombase.AppDataBase;
import com.example.applock.roombase.AppEntity;
import com.example.applock.roombase.SoftWareLockRoom;
+import com.example.applock.value.onShowDialogCallback;
import java.util.List;
@@ -24,6 +31,9 @@ public class LockedFragment extends Fragment {
private RecyclerView recyclerView_locked;
private boolean locked = true;
private List list;
+ private MsgDialog msgDialog;
+ private SoftWarePerssionDialog dialog;
+ private boolean showDialog = false;
@SuppressLint("MissingInflatedId")
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
@@ -35,26 +45,47 @@ public class LockedFragment extends Fragment {
return view;
}
- private void setRecycleLocked() {
- SoftWareLockRoom.RUNIO(new Runnable() {
- @Override
- public void run() {
- list = AppDataBase.getDatabaseInstance().getAppEntityDao().queryApp(locked);
- getActivity().runOnUiThread(new Runnable() {
- @Override
- public void run() {
- LockedAdapter lockedAdapter = new LockedAdapter(getActivity(),list);
- recyclerView_locked.setAdapter(lockedAdapter);
- recyclerView_locked.setLayoutManager(new GridLayoutManager(getActivity(),1));
- }
- });
- }
- });
- }
-
@Override
public void onResume() {
super.onResume();
- setRecycleLocked();
+ Log.d(SoftWareLockApplication.TAG,"=====locked=onResume showDialog="+showDialog);
+ if(showDialog){
+ showDialog = false;
+ if(getActivity()!= null&& msgDialog != null){
+ msgDialog.show(getActivity().getSupportFragmentManager(), "");
+ }
+ }
}
+
+ private void setRecycleLocked() {
+ SystemAdapter lockedAdapter = new SystemAdapter(requireActivity());
+ lockedAdapter.setOnShowDialogCallback(new onShowDialogCallback() {
+ @Override
+ public void onShowDialog(String msg) {
+ Log.d(SoftWareLockApplication.TAG,"---lockFragemnt--onShowDialog---------------");
+ msgDialog = new MsgDialog(msg);
+ showDialog = true;
+
+ }
+
+ @Override
+ public void onShowStepDialog() {
+ if (dialog == null) {
+ dialog = new SoftWarePerssionDialog(requireActivity());
+ }
+ dialog.show(requireActivity().getSupportFragmentManager(), "");
+ }
+ });
+ recyclerView_locked.setAdapter(lockedAdapter);
+ recyclerView_locked.setLayoutManager(new GridLayoutManager(getActivity(),1));
+ AppDataBase.getDatabaseInstance().getAppEntityDao().queryApp(locked).observe(getViewLifecycleOwner(), new Observer>() {
+ @Override
+ public void onChanged(List appEntities) {
+ lockedAdapter.setData(appEntities);
+ Log.d(SoftWareLockApplication.TAG,"---Locked---onChanged");
+ }
+ });
+
+ }
+
}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/applock/fragment/SystemFragment.java b/app/src/main/java/com/example/applock/fragment/SystemFragment.java
index fc646a8..de4f4ef 100644
--- a/app/src/main/java/com/example/applock/fragment/SystemFragment.java
+++ b/app/src/main/java/com/example/applock/fragment/SystemFragment.java
@@ -9,17 +9,23 @@ import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
+import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.applock.R;
+import com.example.applock.allmanager.MsgDialog;
import com.example.applock.allmanager.MyWorker;
+import com.example.applock.allmanager.SoftWarePerssionDialog;
+import com.example.applock.application.SoftWareLockApplication;
import com.example.applock.lockadapter.SystemAdapter;
import com.example.applock.roombase.AppDataBase;
import com.example.applock.roombase.AppEntity;
import com.example.applock.roombase.SoftWareLockRoom;
import com.example.applock.value.Mytool;
+import com.example.applock.value.onShowDialogCallback;
+import com.pgl.ssdk.S;
import java.util.List;
@@ -27,7 +33,14 @@ public class SystemFragment extends Fragment {
private RecyclerView recyclerView_apps;
private List list;
- private boolean system = true;
+
+
+ public static String KEY = "IS_SYSTEM";
+
+ private MsgDialog msgDialog;
+ private SoftWarePerssionDialog dialog;
+
+ private boolean showDialog = false;
@SuppressLint("MissingInflatedId")
@Override
@@ -40,26 +53,62 @@ public class SystemFragment extends Fragment {
return view;
}
+ public static SystemFragment newInstance(boolean isSystem) {
+
+ Bundle args = new Bundle();
+
+ SystemFragment fragment = new SystemFragment();
+ args.putBoolean(KEY,isSystem);
+ fragment.setArguments(args);
+ return fragment;
+ }
+
+ @Override
+ public void onResume() {
+ super.onResume();
+ Log.d(SoftWareLockApplication.TAG,"=====system=onResume showDialog="+showDialog);
+ if(showDialog){
+ showDialog = false;
+ if(getActivity()!= null&& msgDialog != null){
+ msgDialog.show(getActivity().getSupportFragmentManager(), "");
+ }
+ }
+ }
+
private void setRecycleSystem() {
+ SystemAdapter systemAdapter = new SystemAdapter(requireActivity());
+ systemAdapter.setOnShowDialogCallback(new onShowDialogCallback() {
+ @Override
+ public void onShowDialog(String msg) {
+ Log.d(SoftWareLockApplication.TAG,"----system onShowDialog111");
+ msgDialog = new MsgDialog(msg);
+ showDialog = true;
+ }
+
+ @Override
+ public void onShowStepDialog() {
+ if (dialog == null) {
+ dialog = new SoftWarePerssionDialog(requireActivity());
+ }
+ dialog.show(requireActivity().getSupportFragmentManager(), "");
+ }
+ });
+
+ recyclerView_apps.setAdapter(systemAdapter);
+ recyclerView_apps.setLayoutManager(new GridLayoutManager(getActivity(),1));
SoftWareLockRoom.RUNIO(new Runnable() {
@Override
public void run() {
- list = AppDataBase.getDatabaseInstance().getAppEntityDao().queryApplfrom(system);
+ boolean aBoolean = getArguments().getBoolean(KEY, true);
+ list = AppDataBase.getDatabaseInstance().getAppEntityDao().queryApplfrom(aBoolean);
getActivity().runOnUiThread(new Runnable() {
@Override
public void run() {
- SystemAdapter systemAdapter = new SystemAdapter(getActivity(),list);
- recyclerView_apps.setAdapter(systemAdapter);
- recyclerView_apps.setLayoutManager(new GridLayoutManager(getActivity(),1));
+ systemAdapter.setData(list);
}
});
}
});
}
- @Override
- public void onResume() {
- super.onResume();
- setRecycleSystem();
- }
}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/applock/fragment/ThirdFragment.java b/app/src/main/java/com/example/applock/fragment/ThirdFragment.java
index 0c817d2..250da34 100644
--- a/app/src/main/java/com/example/applock/fragment/ThirdFragment.java
+++ b/app/src/main/java/com/example/applock/fragment/ThirdFragment.java
@@ -53,9 +53,5 @@ public class ThirdFragment extends Fragment {
});
}
- @Override
- public void onResume() {
- super.onResume();
- setRecycleThird();
- }
+
}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/applock/lockadapter/FragmentAdapter.java b/app/src/main/java/com/example/applock/lockadapter/FragmentAdapter.java
index e47f77b..337e91b 100644
--- a/app/src/main/java/com/example/applock/lockadapter/FragmentAdapter.java
+++ b/app/src/main/java/com/example/applock/lockadapter/FragmentAdapter.java
@@ -17,11 +17,11 @@ public class FragmentAdapter extends FragmentStateAdapter {
@NonNull
@Override
public Fragment createFragment(int position) {
- switch (position){
+ switch (position) {
case 0:
- return new SystemFragment();
+ return SystemFragment.newInstance(true);
case 1:
- return new ThirdFragment();
+ return SystemFragment.newInstance(false);
default:
return new LockedFragment();
}
diff --git a/app/src/main/java/com/example/applock/lockadapter/LockedAdapter.java b/app/src/main/java/com/example/applock/lockadapter/LockedAdapter.java
index 931f069..3a17398 100644
--- a/app/src/main/java/com/example/applock/lockadapter/LockedAdapter.java
+++ b/app/src/main/java/com/example/applock/lockadapter/LockedAdapter.java
@@ -15,26 +15,38 @@ import androidx.recyclerview.widget.RecyclerView;
import com.example.applock.R;
import com.example.applock.allmanager.AppManager;
+import com.example.applock.allmanager.MsgDialog;
+import com.example.applock.application.SoftWareLockApplication;
import com.example.applock.databinding.ItemAppBinding;
import com.example.applock.databinding.LockedAppBinding;
import com.example.applock.roombase.AppDataBase;
import com.example.applock.roombase.AppEntity;
import com.example.applock.roombase.SoftWareLockRoom;
+import com.example.applock.value.Mytool;
+import com.example.applock.value.onActionCallback;
+import java.util.ArrayList;
import java.util.List;
public class LockedAdapter extends RecyclerView.Adapter {
private FragmentActivity mycon;
- private List mylist;
+ private List mylist = new ArrayList<>();
private boolean lockedapp = true;
- public LockedAdapter(FragmentActivity context,List entities){
- mylist = entities;
+
+ public LockedAdapter(FragmentActivity context) {
+
mycon = context;
}
+
+ public void setData(List entities) {
+ mylist = entities;
+ notifyDataSetChanged();
+ }
+
@NonNull
@Override
public LockedVH onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
- LockedAppBinding lockedAppBinding = LockedAppBinding.inflate(LayoutInflater.from(mycon),parent,false);
+ LockedAppBinding lockedAppBinding = LockedAppBinding.inflate(LayoutInflater.from(mycon), parent, false);
return new LockedVH(lockedAppBinding);
}
@@ -47,20 +59,40 @@ public class LockedAdapter extends RecyclerView.Adapter
if (icon != null) {
holder.lockedbinding.lockedLogo.setImageDrawable(icon);
}
- holder.lockedbinding.lockedLocked.setBackgroundResource(R.drawable.lock);
+ holder.lockedbinding.lockedLocked.setSelected(true);
holder.lockedbinding.lockedLocked.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
- if (lockedapp){
- holder.lockedbinding.lockedLocked.setBackgroundResource(R.drawable.unlock);
- lockedapp = false;
- entityApp.setApplocked(false);
- Toast.makeText(mycon,mycon.getText(R.string.unlock_success),Toast.LENGTH_SHORT).show();
+ if (SoftWareLockApplication.userOption % 5 == 0){
+ Mytool.showAd(mycon, new onActionCallback() {
+ @Override
+ public void onAction() {
+
+ holder.lockedbinding.lockedLocked.setSelected(!holder.lockedbinding.lockedLocked.isSelected());
+ if (!holder.lockedbinding.lockedLocked.isSelected()) {
+ lockedapp = false;
+ entityApp.setApplocked(false);
+ Toast.makeText(mycon, mycon.getText(R.string.unlock_success), Toast.LENGTH_SHORT).show();
+ } else {
+ lockedapp = true;
+ entityApp.setApplocked(true);
+ Toast.makeText(mycon, mycon.getText(R.string.lock_success), Toast.LENGTH_SHORT).show();
+ }
+// MsgDialog msgDialog = new MsgDialog(msg);
+// msgDialog.show(mycon.getSupportFragmentManager(), "");
+ }
+ });
}else {
- holder.lockedbinding.lockedLocked.setBackgroundResource(R.drawable.lock);
- lockedapp = true;
- entityApp.setApplocked(true);
- Toast.makeText(mycon,mycon.getText(R.string.lock_success),Toast.LENGTH_SHORT).show();
+ holder.lockedbinding.lockedLocked.setSelected(!holder.lockedbinding.lockedLocked.isSelected());
+ if (!holder.lockedbinding.lockedLocked.isSelected()) {
+ lockedapp = false;
+ entityApp.setApplocked(false);
+ Toast.makeText(mycon, mycon.getText(R.string.unlock_success), Toast.LENGTH_SHORT).show();
+ } else {
+ lockedapp = true;
+ entityApp.setApplocked(true);
+ Toast.makeText(mycon, mycon.getText(R.string.lock_success), Toast.LENGTH_SHORT).show();
+ }
}
SoftWareLockRoom.RUNIO(new Runnable() {
@Override
@@ -68,6 +100,8 @@ public class LockedAdapter extends RecyclerView.Adapter
AppDataBase.getDatabaseInstance().getAppEntityDao().updateData(entityApp);
}
});
+
+ SoftWareLockApplication.userOption++;
}
});
}
@@ -79,9 +113,11 @@ public class LockedAdapter extends RecyclerView.Adapter
public class LockedVH extends RecyclerView.ViewHolder {
private LockedAppBinding lockedbinding;
+
public LockedVH(@NonNull LockedAppBinding itemView) {
super(itemView.getRoot());
lockedbinding = itemView;
+
}
}
}
diff --git a/app/src/main/java/com/example/applock/lockadapter/SystemAdapter.java b/app/src/main/java/com/example/applock/lockadapter/SystemAdapter.java
index 6ce1970..3da9a19 100644
--- a/app/src/main/java/com/example/applock/lockadapter/SystemAdapter.java
+++ b/app/src/main/java/com/example/applock/lockadapter/SystemAdapter.java
@@ -1,6 +1,7 @@
package com.example.applock.lockadapter;
import android.annotation.SuppressLint;
+import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
@@ -33,27 +34,36 @@ import com.example.applock.roombase.SoftWareLockRoom;
import com.example.applock.value.Adcallback;
import com.example.applock.value.MyAllValues;
import com.example.applock.value.Mytool;
+import com.example.applock.value.onShowDialogCallback;
import com.pgl.ssdk.S;
+import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
public class SystemAdapter extends RecyclerView.Adapter {
- private FragmentActivity mycon;
+ private Activity mycon;
public static SharedPreferences.Editor keyeditor;
private List ads;
- private List mylist;
+ private List mylist = new ArrayList<>();
private LockListener lockListener;
private SoftWarePerssionDialog dialog;
private boolean mLockList;
private MsgDialog msgDialog;
- public SystemAdapter(FragmentActivity context, List entities){
+
+ private onShowDialogCallback onShowDialogCallback;
+
+ public void setOnShowDialogCallback(onShowDialogCallback callback) {
+ this.onShowDialogCallback = callback;
+ }
+
+ public SystemAdapter(Activity context){
mycon = context;
- mylist = entities;
ads = SoftWareLockApplication.lodAd();
}
- public void setLockListener(LockListener lockListener) {
- this.lockListener = lockListener;
+ public void setData(List entities) {
+ mylist = entities;
+ notifyDataSetChanged();
}
@NonNull
@Override
@@ -71,6 +81,7 @@ public class SystemAdapter extends RecyclerView.Adapter
if (icon != null) {
holder.appBinding.appLogo.setImageDrawable(icon);
}
+
mLockList = entityApp.isApplocked();
if (mLockList){
holder.appBinding.appLocked.setSelected(true);
@@ -82,23 +93,20 @@ public class SystemAdapter extends RecyclerView.Adapter
public void onClick(View v) {
if (SoftLockPermission.allAllowPermission(mycon)){
holder.appBinding.appLocked.setSelected(!holder.appBinding.appLocked.isSelected());
-
- if (SoftWareLockApplication.userOption % 5 == 0) {
+ if ( SoftWareLockApplication.userOption % 5 == 0) {
ATInterstitial mInterstitialAd = Mytool.onCache(ads);
if (mInterstitialAd == null) {
- Log.d("dhn111","-----mInterstitialAd=null---------------");
onAction(entityApp, holder.appBinding.appLocked,true);
// TODO: 2024/8/16
} else {
Mytool.setCallback(mInterstitialAd, new Adcallback() {
@Override
public void onShowFail(AdError ad) {
- Log.d("dhn111","-----onShowFail---------------");
+
onAction(entityApp, holder.appBinding.appLocked,true);
}
@Override
public void onAdHidden() {
- Log.d("dhn111","-----onAdHidden---------------");
onAction(entityApp, holder.appBinding.appLocked,true);
}
});
@@ -106,7 +114,6 @@ public class SystemAdapter extends RecyclerView.Adapter
}
} else {
- Log.d("dhn111","-----不显示广告---------------");
onAction(entityApp, holder.appBinding.appLocked,false);
}
SoftWareLockApplication.userOption++;
@@ -117,28 +124,31 @@ public class SystemAdapter extends RecyclerView.Adapter
});
}
- private void onAction(AppEntity entity,ImageView imageView,boolean showDailog){
+ private void onAction(AppEntity tmpEntity,ImageView imageView,boolean showDailog){
+
String msg = "";
boolean selected = imageView.isSelected();
if (!selected) {
- entity.setApplocked(false);
- msg = entity.getApplabel() + "unlocked success";
+ tmpEntity.setApplocked(false);
+ msg = tmpEntity.getApplabel() + " unlocked success";
} else {
- entity.setApplocked(true);
- msg = entity.getApplabel() + "locked success";
+ tmpEntity.setApplocked(true);
+ msg = tmpEntity.getApplabel() + " locked success";
}
- if(showDailog){
- msgDialog = new MsgDialog(msg);
- msgDialog.show(mycon.getSupportFragmentManager(), "");
-
- }
-
SoftWareLockRoom.RUNIO(new Runnable() {
@Override
public void run() {
- AppDataBase.getDatabaseInstance().getAppEntityDao().updateData(entity);
+ AppDataBase.getDatabaseInstance().getAppEntityDao().updateData(tmpEntity);
+ Log.d(SoftWareLockApplication.TAG,"-----updateData---------------");
}
});
+ if(showDailog){
+ if(onShowDialogCallback!= null){
+ onShowDialogCallback.onShowDialog(msg);
+ }
+ }
+
+
}
private void getDialogsuccess() {
@@ -147,10 +157,9 @@ public class SystemAdapter extends RecyclerView.Adapter
if (isSelect && isEnable) {
//goApply();
} else {
- if (dialog == null) {
- dialog = new SoftWarePerssionDialog(mycon);
+ if(onShowDialogCallback!= null){
+ onShowDialogCallback.onShowStepDialog();
}
- dialog.show(mycon.getSupportFragmentManager(), "");
}
}
@Override
diff --git a/app/src/main/java/com/example/applock/lockadapter/ThirdAdapter.java b/app/src/main/java/com/example/applock/lockadapter/ThirdAdapter.java
index b7df4e0..cc7f9fe 100644
--- a/app/src/main/java/com/example/applock/lockadapter/ThirdAdapter.java
+++ b/app/src/main/java/com/example/applock/lockadapter/ThirdAdapter.java
@@ -76,22 +76,22 @@ public class ThirdAdapter extends RecyclerView.Adapter {
if (SoftLockPermission.allAllowPermission(mycon)){
holder.appBinding.appLocked.setSelected(!holder.appBinding.appLocked.isSelected());
- if (SoftWareLockApplication.userOption2 % 5 == 0) {
+ if (SoftWareLockApplication.userOption % 5 == 0) {
ATInterstitial mInterstitialAd = Mytool.onCache(ads);
if (mInterstitialAd == null) {
- Log.d("dhn111","-----mInterstitialAd=null---------------");
+ Log.d(SoftWareLockApplication.TAG,"-----mInterstitialAd=null---------------");
onAction(entityApp, holder.appBinding.appLocked,true);
// TODO: 2024/8/16
} else {
Mytool.setCallback(mInterstitialAd, new Adcallback() {
@Override
public void onShowFail(AdError ad) {
- Log.d("dhn111","-----onShowFail---------------");
+ Log.d(SoftWareLockApplication.TAG,"-----onShowFail---------------");
onAction(entityApp, holder.appBinding.appLocked,true);
}
@Override
public void onAdHidden() {
- Log.d("dhn111","-----onAdHidden---------------");
+ Log.d(SoftWareLockApplication.TAG,"-----onAdHidden---------------");
onAction(entityApp, holder.appBinding.appLocked,true);
}
});
@@ -99,10 +99,10 @@ public class ThirdAdapter extends RecyclerView.Adapter {
}
} else {
- Log.d("dhn111","-----不显示广告---------------");
+ Log.d(SoftWareLockApplication.TAG,"-----不显示广告---------------");
onAction(entityApp, holder.appBinding.appLocked,false);
}
- SoftWareLockApplication.userOption2++;
+ SoftWareLockApplication.userOption++;
}else {
getDialogsuccess();
}
diff --git a/app/src/main/java/com/example/applock/roombase/AppEntityDao.java b/app/src/main/java/com/example/applock/roombase/AppEntityDao.java
index a6c89a4..de62694 100644
--- a/app/src/main/java/com/example/applock/roombase/AppEntityDao.java
+++ b/app/src/main/java/com/example/applock/roombase/AppEntityDao.java
@@ -1,5 +1,6 @@
package com.example.applock.roombase;
+import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
@@ -22,7 +23,11 @@ public interface AppEntityDao {
void insertData(AppEntity entityApp);
@Query("select * from app_table_name where applocked=:isLock")
- List queryApp(boolean isLock);
+ LiveData> queryApp(boolean isLock);
+
+
+ @Query("select * from app_table_name where applocked=:isLock")
+ List queryLockApp(boolean isLock);
@Query("select * from app_table_name where appfrom=:appfrom")
List queryApplfrom(boolean appfrom);
}
diff --git a/app/src/main/java/com/example/applock/roombase/SoftWareLockRoom.java b/app/src/main/java/com/example/applock/roombase/SoftWareLockRoom.java
index 705f9ed..0ab6527 100644
--- a/app/src/main/java/com/example/applock/roombase/SoftWareLockRoom.java
+++ b/app/src/main/java/com/example/applock/roombase/SoftWareLockRoom.java
@@ -30,7 +30,7 @@ public class SoftWareLockRoom {
getMyUIServicePool().execute(new Runnable() {
@Override
public void run() {
- List applist = AppDataBase.getDatabaseInstance().getAppEntityDao().queryApp(islock);
+ List applist = AppDataBase.getDatabaseInstance().getAppEntityDao().queryLockApp(islock);
getMyHandler().post(()->{
listener.QueryResult(applist);
});
diff --git a/app/src/main/java/com/example/applock/value/Mytool.java b/app/src/main/java/com/example/applock/value/Mytool.java
index e7133d2..49ef75b 100644
--- a/app/src/main/java/com/example/applock/value/Mytool.java
+++ b/app/src/main/java/com/example/applock/value/Mytool.java
@@ -1,5 +1,6 @@
package com.example.applock.value;
+import android.app.Activity;
import android.content.Context;
import android.util.Log;
@@ -96,7 +97,7 @@ public class Mytool {
}
});
-// ad.load();
+ ad.load();
}
}
return adArrayList;
@@ -106,4 +107,26 @@ public class Mytool {
ATInterstitial ad = new ATInterstitial(context, adUnitId);
return ad;
}
+
+
+ public static void showAd(Activity activity,onActionCallback callback) {
+ ATInterstitial mInterstitialAd = Mytool.onCache(adArrayList);
+ if (mInterstitialAd == null) {
+ callback.onAction();
+ } else {
+ Mytool.setCallback(mInterstitialAd, new Adcallback() {
+ @Override
+ public void onShowFail(AdError ad) {
+ callback.onAction();
+ }
+
+ @Override
+ public void onAdHidden() {
+ callback.onAction();
+ }
+ });
+ mInterstitialAd.show(activity);
+ }
+
+ }
}
diff --git a/app/src/main/java/com/example/applock/value/onActionCallback.java b/app/src/main/java/com/example/applock/value/onActionCallback.java
new file mode 100644
index 0000000..31c5564
--- /dev/null
+++ b/app/src/main/java/com/example/applock/value/onActionCallback.java
@@ -0,0 +1,11 @@
+package com.example.applock.value;
+
+
+import com.anythink.core.api.AdError;
+
+public interface onActionCallback {
+
+ void onAction( );
+
+
+}
diff --git a/app/src/main/java/com/example/applock/value/onShowDialogCallback.java b/app/src/main/java/com/example/applock/value/onShowDialogCallback.java
new file mode 100644
index 0000000..0b6f08b
--- /dev/null
+++ b/app/src/main/java/com/example/applock/value/onShowDialogCallback.java
@@ -0,0 +1,9 @@
+package com.example.applock.value;
+
+
+public interface onShowDialogCallback {
+
+ void onShowDialog(String msg);
+
+ void onShowStepDialog();
+}
diff --git a/app/src/main/res/drawable/back_black.xml b/app/src/main/res/drawable/back_black.xml
new file mode 100644
index 0000000..1a92507
--- /dev/null
+++ b/app/src/main/res/drawable/back_black.xml
@@ -0,0 +1,9 @@
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/icon_delete.xml b/app/src/main/res/drawable/icon_delete.xml
new file mode 100644
index 0000000..f5431c9
--- /dev/null
+++ b/app/src/main/res/drawable/icon_delete.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
diff --git a/app/src/main/res/drawable/icon_step1.xml b/app/src/main/res/drawable/icon_step1.xml
new file mode 100644
index 0000000..e4cddb3
--- /dev/null
+++ b/app/src/main/res/drawable/icon_step1.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/icon_step2.xml b/app/src/main/res/drawable/icon_step2.xml
new file mode 100644
index 0000000..e4936b1
--- /dev/null
+++ b/app/src/main/res/drawable/icon_step2.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/menu.xml b/app/src/main/res/drawable/menu.xml
new file mode 100644
index 0000000..17f8631
--- /dev/null
+++ b/app/src/main/res/drawable/menu.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/selector_app_lock.xml b/app/src/main/res/drawable/selector_app_lock.xml
index e5d6aac..020bcb9 100644
--- a/app/src/main/res/drawable/selector_app_lock.xml
+++ b/app/src/main/res/drawable/selector_app_lock.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/step_bg.xml b/app/src/main/res/drawable/step_bg.xml
new file mode 100644
index 0000000..ce2cb03
--- /dev/null
+++ b/app/src/main/res/drawable/step_bg.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_into.xml b/app/src/main/res/layout/activity_into.xml
index 5818da2..5777496 100644
--- a/app/src/main/res/layout/activity_into.xml
+++ b/app/src/main/res/layout/activity_into.xml
@@ -8,8 +8,8 @@
tools:context=".activity.IntoActivity">
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 8808b15..8658225 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -31,7 +31,7 @@
android:layout_height="30dp"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
- app:srcCompat="@mipmap/setting" />
+ app:srcCompat="@drawable/menu" />
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_setting.xml b/app/src/main/res/layout/activity_setting.xml
index 024285e..c22b2be 100644
--- a/app/src/main/res/layout/activity_setting.xml
+++ b/app/src/main/res/layout/activity_setting.xml
@@ -8,7 +8,7 @@
tools:context=".activity.SettingActivity">
@@ -16,6 +16,8 @@
android:id="@+id/setting_back"
android:layout_width="43dp"
android:layout_height="43dp"
+ android:padding="8dp"
+ android:layout_marginStart="25dp"
android:src="@drawable/image_back"
android:layout_marginTop="10dp"
app:layout_constraintLeft_toLeftOf="parent"
@@ -23,11 +25,9 @@
app:layout_constraintTop_toTopOf="parent" />
@@ -74,8 +74,8 @@
android:text="@string/app_share"
android:textSize="17sp" />
@@ -94,8 +94,8 @@
android:text="@string/app_rate"
android:textSize="17sp" />
@@ -114,8 +114,8 @@
android:text="@string/Privacy_Policy"
android:textSize="17sp" />
diff --git a/app/src/main/res/layout/buttom_key_view.xml b/app/src/main/res/layout/buttom_key_view.xml
index 01b3cf0..ada2d49 100644
--- a/app/src/main/res/layout/buttom_key_view.xml
+++ b/app/src/main/res/layout/buttom_key_view.xml
@@ -21,6 +21,6 @@
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center"
- android:src="@mipmap/delete_key" />
+ android:src="@drawable/icon_delete" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/dialog_permission.xml b/app/src/main/res/layout/dialog_permission.xml
index 6f17a76..9edf9fe 100644
--- a/app/src/main/res/layout/dialog_permission.xml
+++ b/app/src/main/res/layout/dialog_permission.xml
@@ -2,133 +2,149 @@
+ app:cardCornerRadius="24dp"
+ tools:context=".activity.MainActivity">
+
+
+ android:textSize="20sp"
+ android:textStyle="bold" />
+
-
+
+
+ android:background="@drawable/step_bg"
+ android:orientation="vertical"
+ android:paddingLeft="16dp"
+ android:paddingRight="16dp">
+
-
-
-
-
+
+
- android:textSize="20sp" />
-
-
-
-
-
-
+
+
-
-
-
-
+ android:text="@string/detect"
+ android:textColor="@color/black"
+
+ android:textSize="20sp" />
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/locked_app.xml b/app/src/main/res/layout/locked_app.xml
index fd61007..67f6cc2 100644
--- a/app/src/main/res/layout/locked_app.xml
+++ b/app/src/main/res/layout/locked_app.xml
@@ -34,7 +34,7 @@
android:layout_centerVertical="true"
android:layout_marginEnd="16dp"
android:focusableInTouchMode="false"
- android:background="@drawable/unlock" />
+ android:src="@drawable/selector_app_lock" />
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-hdpi/delete_key.png b/app/src/main/res/mipmap-hdpi/delete_key.png
deleted file mode 100644
index 604eeaf..0000000
Binary files a/app/src/main/res/mipmap-hdpi/delete_key.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-hdpi/detect.png b/app/src/main/res/mipmap-hdpi/detect.png
deleted file mode 100644
index 61e3687..0000000
Binary files a/app/src/main/res/mipmap-hdpi/detect.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-hdpi/setting.png b/app/src/main/res/mipmap-hdpi/setting.png
deleted file mode 100644
index b0c75fc..0000000
Binary files a/app/src/main/res/mipmap-hdpi/setting.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-hdpi/show.png b/app/src/main/res/mipmap-hdpi/show.png
deleted file mode 100644
index 4481e82..0000000
Binary files a/app/src/main/res/mipmap-hdpi/show.png and /dev/null differ
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 5984c20..731e71b 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -10,4 +10,5 @@
#F5F5F5
#C4D8FF
#4584FF
+ #000000
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index f53c4d7..d0ae96b 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -41,4 +41,5 @@
Third
Lock Successful
Unlock Successful
+ Privacy Policy
\ No newline at end of file
diff --git a/keystore.properties b/keystore.properties
new file mode 100644
index 0000000..0702c41
--- /dev/null
+++ b/keystore.properties
@@ -0,0 +1,6 @@
+package_name=com.soft.ware.lock.hd
+app_name=SoftWare Lock
+keystoreFile=app/SoftWare Lock.jks
+key_alias=SoftWare Lockkey0
+key_store_password=SoftWare Lock
+key_password=SoftWare Lock