-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/canary' into canary
- Loading branch information
Showing
5 changed files
with
120 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
app/src/main/java/sh/siava/pixelxpert/ui/models/SearchPreferenceItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package sh.siava.pixelxpert.ui.models; | ||
|
||
import androidx.annotation.StringRes; | ||
import androidx.annotation.XmlRes; | ||
|
||
import sh.siava.pixelxpert.utils.ControlledPreferenceFragmentCompat; | ||
|
||
public class SearchPreferenceItem { | ||
|
||
private final @XmlRes int xml; | ||
private final @StringRes int title; | ||
private final ControlledPreferenceFragmentCompat fragment; | ||
|
||
public SearchPreferenceItem(int xml, int title, ControlledPreferenceFragmentCompat fragment) { | ||
this.xml = xml; | ||
this.title = title; | ||
this.fragment = fragment; | ||
} | ||
|
||
public int getXml() { | ||
return xml; | ||
} | ||
|
||
public int getTitle() { | ||
return title; | ||
} | ||
|
||
public ControlledPreferenceFragmentCompat getFragment() { | ||
return fragment; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<solid android:color="?attr/colorPrimaryContainer" /> | ||
<corners android:radius="@dimen/ui_container_radius" /> | ||
</shape> |
Oops, something went wrong.