Skip to content

Commit 25704f8

Browse files
committed
Fix hide WhatsApp in HomeFragment
Signed-off-by: Dev4Mod <[email protected]>
1 parent 8aa6823 commit 25704f8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/src/main/java/com/wmods/wppenhacer/ui/fragments/HomeFragment.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,12 @@ private void checkStateWpp(FragmentActivity activity) {
254254
binding.deviceName.setText(Build.MANUFACTURER);
255255
binding.sdk.setText(String.valueOf(Build.VERSION.SDK_INT));
256256
binding.modelName.setText(Build.DEVICE);
257-
binding.listWpp.setText(Arrays.toString(activity.getResources().getStringArray(R.array.supported_versions_wpp)));
257+
if (App.isOriginalPackage()) {
258+
binding.listWpp.setText(Arrays.toString(activity.getResources().getStringArray(R.array.supported_versions_wpp)));
259+
} else {
260+
binding.listWppTitle.setVisibility(View.GONE);
261+
binding.listWpp.setVisibility(View.GONE);
262+
}
258263
binding.listBusiness.setText(Arrays.toString(activity.getResources().getStringArray(R.array.supported_versions_business)));
259264
}
260265

app/src/main/res/layout/fragment_home.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@
319319
android:text="" />
320320

321321
<com.google.android.material.textview.MaterialTextView
322+
android:id="@+id/list_wpp_title"
322323
style="@style/DeviceInfoDialogLabel"
323324
android:layout_width="match_parent"
324325
android:layout_height="wrap_content"

0 commit comments

Comments
 (0)