Skip to content

Commit

Permalink
[ANDROAPP-5891] Delete signature canvas app implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmr committed Jan 24, 2024
1 parent 7f1989e commit 8564994
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 309 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.dhis2.R;
import org.dhis2.commons.featureconfig.ui.FeatureConfigView;
import org.dhis2.databinding.DevelopmentActivityBinding;
import org.dhis2.ui.dialogs.signature.SignatureDialog;
import org.dhis2.usescases.general.ActivityGlobalAbstract;
import org.hisp.dhis.android.core.D2;
import org.hisp.dhis.android.core.D2Manager;
Expand All @@ -25,8 +24,6 @@
import java.io.Writer;
import java.util.List;

import kotlin.Unit;

public class DevelopmentActivity extends ActivityGlobalAbstract {

private int count;
Expand All @@ -41,7 +38,6 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
loadIconsDevTools();
loadCrashControl();
loadFeatureConfig();
loadSignature();
loadConflicts();
}

Expand Down Expand Up @@ -189,13 +185,6 @@ private void loadFeatureConfig() {
});
}

private void loadSignature() {
binding.signature.setOnClickListener(view -> {
new SignatureDialog("Signature", bitmap -> Unit.INSTANCE).show(getSupportFragmentManager(), "Signature");
}
);
}

@Override
public void onBackPressed() {
setResult(RESULT_OK);
Expand Down
16 changes: 0 additions & 16 deletions app/src/main/res/layout/development_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,22 +144,6 @@
android:layout_gravity="end"
android:text="Features list" />

<TextView
style="@style/TextPrimary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:background="@color/primaryAlpha"
android:text="Handwrite signature"
android:textColor="@color/colorAccent" />

<com.google.android.material.button.MaterialButton
android:id="@+id/signature"
style="@style/Widget.MaterialComponents.Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:text="Signature" />
<TextView
style="@style/TextPrimary"
android:layout_width="match_parent"
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 8564994

Please sign in to comment.