Skip to content

Commit

Permalink
Do not allow manual synchronization
Browse files Browse the repository at this point in the history
  • Loading branch information
astonbitecode committed Apr 1, 2019
1 parent 81e0176 commit f8236f4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
10 changes: 0 additions & 10 deletions java/res/layout/fragment_main_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,6 @@
android:drawableTop="@drawable/settings"
android:text="Configuration"/>

<Button
android:id="@+id/synchronizeButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="fill_horizontal"
android:layout_marginTop="20sp"
android:background="@android:color/transparent"
android:drawableTop="@drawable/cloudsync"
android:text="Synchronize now"/>

<Button
android:id="@+id/exitButton"
android:layout_width="wrap_content"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ private void addButtonListeners(View rootView) {
binp.setOnClickListener(this);
Button bcfg = (Button) rootView.findViewById(R.id.mmEditConfigurationButton);
bcfg.setOnClickListener(this);
Button sb = (Button) rootView.findViewById(R.id.synchronizeButton);
sb.setOnClickListener(this);
}

@Override
Expand All @@ -91,14 +89,6 @@ public void onClick(View view) {
} else if (view.getId() == R.id.mmEditConfigurationButton) {
Log.d(TAG, "The User Selected to edit the configuration");
InterfaceWithRust.INSTANCE.go_to_menu(Defs.MENU_SHOW_CONFIGURATION);
} else if (view.getId() == R.id.synchronizeButton) {
Log.d(TAG, "Clicked Synchronize now in configuration");

InterfaceWithRust.INSTANCE.go_to_menu(Defs.MENU_SYNCHRONIZE);

MainActivity mainActivity = MainActivity.getActiveActivity();
Runnable uiRunnable = new UiThreadRunnable(mainActivity);
mainActivity.runOnUiThread(uiRunnable);
} else {
Log.e(TAG, "The User selected a Menu that is not implemented yet in Rust");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public class Defs {
public static final String MENU_EXPORT_ENTRIES = "ExportEntries";
public static final String MENU_IMPORT_ENTRIES = "ImportEntries";
public static final String MENU_SHOW_CONFIGURATION = "ShowConfiguration";
public static final String MENU_SYNCHRONIZE = "Synchronize";
public static final String MENU_CURRENT = "Current";
public static final String EMPTY_ARG = "null";
}

0 comments on commit f8236f4

Please sign in to comment.