Skip to content

Commit

Permalink
pro branding
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaji Khan committed Mar 22, 2024
1 parent 4dc1f87 commit 7061659
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/com/shajikhan/ladspa/amprack/Rack.java
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,9 @@ public boolean onTouch(View view, MotionEvent motionEvent) {
MenuItem getPro = optionsMenu.getMenu().getItem(3);
if (mainActivity.defaultSharedPreferences.getBoolean("pro", false)) {
getPro.setVisible(false);
TextView textView = view.findViewById(R.id.pro_label);
// textView.setText("Pro");
textView.setVisibility(View.VISIBLE);
TextView textView = view.findViewById(R.id.app_main_title);
textView.setText("Pro");
(view.findViewById(R.id.pro_label)).setVisibility(View.VISIBLE);
}

getPro.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
Expand Down
10 changes: 9 additions & 1 deletion app/src/main/res/layout/rack.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
android:paddingBottom="0dp"
android:src="@drawable/logo" />


<TextView
android:visibility="gone"
android:visibility="visible"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
Expand All @@ -57,6 +58,12 @@
android:textStyle="bold" />


<androidx.legacy.widget.Space
android:layout_width="wrap_content"
android:layout_weight="1"
android:layout_height="wrap_content"/>


<ToggleButton
android:layout_width="48dp"
android:layout_height="wrap_content"
Expand Down Expand Up @@ -128,6 +135,7 @@
android:layout_gravity="right"
android:gravity="right"
android:layout_width="50dp"
android:layout_marginRight="10dp"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:drawableLeft="@drawable/ic_baseline_more_vert_24" />
Expand Down

0 comments on commit 7061659

Please sign in to comment.