Skip to content

Commit f8236f4

Browse files
committed
Do not allow manual synchronization
1 parent 81e0176 commit f8236f4

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

java/res/layout/fragment_main_menu.xml

-10
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,6 @@
8484
android:drawableTop="@drawable/settings"
8585
android:text="Configuration"/>
8686

87-
<Button
88-
android:id="@+id/synchronizeButton"
89-
android:layout_width="wrap_content"
90-
android:layout_height="wrap_content"
91-
android:layout_gravity="fill_horizontal"
92-
android:layout_marginTop="20sp"
93-
android:background="@android:color/transparent"
94-
android:drawableTop="@drawable/cloudsync"
95-
android:text="Synchronize now"/>
96-
9787
<Button
9888
android:id="@+id/exitButton"
9989
android:layout_width="wrap_content"

java/src/main/java/org/astonbitecode/rustkeylock/fragments/MainMenu.java

-10
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ private void addButtonListeners(View rootView) {
6464
binp.setOnClickListener(this);
6565
Button bcfg = (Button) rootView.findViewById(R.id.mmEditConfigurationButton);
6666
bcfg.setOnClickListener(this);
67-
Button sb = (Button) rootView.findViewById(R.id.synchronizeButton);
68-
sb.setOnClickListener(this);
6967
}
7068

7169
@Override
@@ -91,14 +89,6 @@ public void onClick(View view) {
9189
} else if (view.getId() == R.id.mmEditConfigurationButton) {
9290
Log.d(TAG, "The User Selected to edit the configuration");
9391
InterfaceWithRust.INSTANCE.go_to_menu(Defs.MENU_SHOW_CONFIGURATION);
94-
} else if (view.getId() == R.id.synchronizeButton) {
95-
Log.d(TAG, "Clicked Synchronize now in configuration");
96-
97-
InterfaceWithRust.INSTANCE.go_to_menu(Defs.MENU_SYNCHRONIZE);
98-
99-
MainActivity mainActivity = MainActivity.getActiveActivity();
100-
Runnable uiRunnable = new UiThreadRunnable(mainActivity);
101-
mainActivity.runOnUiThread(uiRunnable);
10292
} else {
10393
Log.e(TAG, "The User selected a Menu that is not implemented yet in Rust");
10494
}

java/src/main/java/org/astonbitecode/rustkeylock/utils/Defs.java

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public class Defs {
3030
public static final String MENU_EXPORT_ENTRIES = "ExportEntries";
3131
public static final String MENU_IMPORT_ENTRIES = "ImportEntries";
3232
public static final String MENU_SHOW_CONFIGURATION = "ShowConfiguration";
33-
public static final String MENU_SYNCHRONIZE = "Synchronize";
3433
public static final String MENU_CURRENT = "Current";
3534
public static final String EMPTY_ARG = "null";
3635
}

0 commit comments

Comments
 (0)