Skip to content

Commit

Permalink
More Credits
Browse files Browse the repository at this point in the history
  • Loading branch information
DHD2280 committed Jun 2, 2024
1 parent 9795b0b commit 85b7521
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
import it.dhd.oxygencustomizer.databinding.CreditsFragmentViewBinding;
import it.dhd.oxygencustomizer.ui.activity.MainActivity;
import it.dhd.oxygencustomizer.ui.adapters.CreditsAdapter;
import it.dhd.oxygencustomizer.ui.base.BaseFragment;
import it.dhd.oxygencustomizer.ui.models.CreditsModel;

public class Credits extends Fragment {
public class Credits extends BaseFragment {

private CreditsFragmentViewBinding binding;

Expand All @@ -32,7 +33,6 @@ public class Credits extends Fragment {
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,
@Nullable Bundle savedInstanceState) {
binding = CreditsFragmentViewBinding.inflate(inflater, container, false);
setHeader(getContext(), R.string.credits_title);
return binding.getRoot();

}
Expand Down Expand Up @@ -66,6 +66,9 @@ public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
"https://t.me/PUINewsroom",
ResourcesCompat.getDrawable(getResources(), R.drawable.panl, requireContext().getTheme())));

credits.add(new CreditsModel("Contributors"));
credits.add(new CreditsModel(VIEW_TYPE_ITEM, "tugaia59", "OOS Themer", "https://t.me/OnePlus_Mods_Theme", R.drawable.tugaia));

credits.add(new CreditsModel("Testers"));
credits.add(new CreditsModel(VIEW_TYPE_ITEM, "Max", "", "", R.drawable.ic_default_person));
credits.add(new CreditsModel(VIEW_TYPE_ITEM, "Siri00", "", "", R.drawable.ic_default_person));
Expand All @@ -92,4 +95,13 @@ public void onDestroyView() {
binding = null;
}

@Override
public String getTitle() {
return getString(R.string.credits_title);
}

@Override
public boolean backButtonEnabled() {
return true;
}
}
Binary file added app/src/main/res/drawable-nodpi/tugaia.webp
Binary file not shown.

0 comments on commit 85b7521

Please sign in to comment.