diff --git a/CODING STRUCTURE b/CODING STRUCTURE
new file mode 100644
index 00000000..e69de29b
diff --git a/Release Checklist.xlsx b/Release Checklist.xlsx
index a28794bb..76a0902c 100644
Binary files a/Release Checklist.xlsx and b/Release Checklist.xlsx differ
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 0a52050b..424d6aa2 100755
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -120,7 +120,11 @@
+
{
if(!hasFocus){
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS);
@@ -97,6 +93,7 @@ public class bookmarkSettingController extends AppCompatActivity {
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS);
return false;
});
+
}
private void initializeModels(){
@@ -106,7 +103,7 @@ public class bookmarkSettingController extends AppCompatActivity {
mBookmarkSettingViewController = new bookmarkSettingViewController(this, new bookmarkSettingViewCallback(), mBookmarName, mBookmarURL);
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_INITIALIZE, Arrays.asList(mBookmarkName,mBookmarkURL));
- mBookmarkSettingModel = new bookmarkSettingModel(this, new bookmarkSettingModelCallback(), mBookmarkID, mBookmarkURL);
+ mBookmarkSettingModel = new bookmarkSettingModelController(this, new bookmarkSettingModelCallback(), mBookmarkID, mBookmarkURL);
}
private void initCallableResponse(bookmarkSettingEnums.eActivityResponseCommands pResponse){
@@ -124,13 +121,9 @@ public class bookmarkSettingController extends AppCompatActivity {
@Override
public void onConfigurationChanged(@NonNull Configuration newConfig) {
- pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
- super.onConfigurationChanged(newConfig);
+ sharedUIMethod.onSharedConfigurationChanged(newConfig, this);
- if(newConfig.uiMode != getResources().getConfiguration().uiMode){
- activityContextManager.getInstance().onResetTheme();
- activityThemeManager.getInstance().onConfigurationChanged(this);
- }
+ super.onConfigurationChanged(newConfig);
}
@Override
@@ -172,19 +165,20 @@ public class bookmarkSettingController extends AppCompatActivity {
if(mBookmarkChanged){
initCallableResponse(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_UPDATE_ALERT);
}
+ onCloseTrigger(null);
}else {
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_BOOKMARK_NAME_VALIDATION_RESPONSE, Collections.singletonList(false));
}
- onCloseTrigger(null);
}
if(view.getId()==R.id.pRemoveBookmark){
+ mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS);
initCallableResponse(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_DELETE_ALERT);
mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_DELETE_BOOKMARK);
onCloseTrigger(null);
}
}
- /* UI Callbacks */
+ /* Callbacks */
private class bookmarkSettingViewCallback implements eventObserver.eventListener{
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/bookmarkManager/BookmarkSettings/bookmarkSettingModel.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/bookmarkManager/BookmarkSettings/bookmarkSettingModelController.java
similarity index 84%
rename from app/src/main/java/com/darkweb/genesissearchengine/appManager/bookmarkManager/BookmarkSettings/bookmarkSettingModel.java
rename to app/src/main/java/com/darkweb/genesissearchengine/appManager/bookmarkManager/BookmarkSettings/bookmarkSettingModelController.java
index bbc9452e..8f0ced5f 100644
--- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/bookmarkManager/BookmarkSettings/bookmarkSettingModel.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/bookmarkManager/BookmarkSettings/bookmarkSettingModelController.java
@@ -1,90 +1,87 @@
-package com.darkweb.genesissearchengine.appManager.bookmarkManager.BookmarkSettings;
-
-import androidx.appcompat.app.AppCompatActivity;
-import com.darkweb.genesissearchengine.appManager.activityContextManager;
-import com.darkweb.genesissearchengine.constants.strings;
-import com.darkweb.genesissearchengine.dataManager.dataController;
-import com.darkweb.genesissearchengine.dataManager.dataEnums;
-import com.darkweb.genesissearchengine.eventObserver;
-import com.darkweb.genesissearchengine.helperManager.helperMethod;
-import com.darkweb.genesissearchengine.pluginManager.pluginController;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-import static com.darkweb.genesissearchengine.dataManager.dataEnums.eBookmarkCommands.M_DELETE_BOOKMARK_FROM_MENU;
-import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_DELETE_BOOKMARK;
-
-class bookmarkSettingModel
-{
- /* Local Variables Variables */
-
- private boolean mBookmarkUpdateStatus = false;
- private int mBookmarkID;
- private String mBookmarkURL;
-
- /* Private Variables */
-
- private AppCompatActivity mContext;
- private eventObserver.eventListener mEvent;
-
- public bookmarkSettingModel(AppCompatActivity pContext, eventObserver.eventListener pEvent, int pBookmarkID, String pBookmarkURL){
- this.mContext = pContext;
- this.mEvent = pEvent;
- this.mBookmarkID = pBookmarkID;
- this.mBookmarkURL = pBookmarkURL;
- }
-
- /* Helper Methods */
-
- private void onUpdateBookmark(String pBookmarkName){
- dataController.getInstance().invokeBookmark(dataEnums.eBookmarkCommands.M_UPDATE_BOOKMARK, Arrays.asList(pBookmarkName, mBookmarkURL, mBookmarkID));
- }
-
- private boolean validateForm(String pBookmarkName){
- if(pBookmarkName.equals(strings.GENERIC_EMPTY_STR)){
- return false;
- }else {
- return true;
- }
- }
-
- private boolean getBookmarkUpdateStatus(){
- return mBookmarkUpdateStatus;
- }
-
- private void setBookmarkUpdateStatus(boolean pBookmarkUpdateStatus){
- mBookmarkUpdateStatus = pBookmarkUpdateStatus;
- }
-
- private void onDeleteBookmark(){
- dataController.getInstance().invokeBookmark(M_DELETE_BOOKMARK_FROM_MENU, Collections.singletonList(mBookmarkURL));
- }
-
- /* Event Observer */
-
- public Object onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands pCommands, List