Skip to content

Commit

Permalink
Scan menu option color issue fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
surinder-tsys committed May 19, 2023
1 parent 48017d7 commit 4ac2954
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
14 changes: 5 additions & 9 deletions app/src/main/java/com/nmc/android/ui/ScanActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.MenuItem;
Expand Down Expand Up @@ -87,15 +87,11 @@ private void setupActionBar() {
ActionBar actionBar = getDelegate().getSupportActionBar();

if (actionBar != null) {
viewThemeUtils.platform.themeStatusBar(this);
//required for NMC
actionBar.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.bg_default, null)));
actionBar.setDisplayHomeAsUpEnabled(true);
Drawable backArrow = ResourcesCompat.getDrawable(
getResources(),
R.drawable.ic_arrow_back,
null);
if (backArrow != null) {
viewThemeUtils.androidx.themeActionBar(this, actionBar, backArrow);
}
//NMC Customization
viewThemeUtils.files.themeActionBar(this, actionBar, false);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,16 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@null"
android:src="@drawable/ic_baseline_format_shapes_24"
app:tint="@color/primary" />
android:src="@drawable/ic_scan_document"
app:tint="@color/bottom_sheet_icon_color" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/bottom_sheet_text_start_margin"
android:text="@string/upload_scan_document"
android:textColor="@color/text_color"
android:textColor="@color/bottom_sheet_txt_color"
android:textSize="@dimen/bottom_sheet_text_size" />

</LinearLayout>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_scan_save.xml
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@
android:layout_height="wrap_content"
android:layout_margin="@dimen/standard_margin"
android:text="@string/common_save"
android:theme="@style/Button.Primary"
style="@style/Button.Primary"
app:cornerRadius="@dimen/button_corner_radius"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
Expand Down

0 comments on commit 4ac2954

Please sign in to comment.