mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-01-30 09:41:33 -05:00
This will be useful when somebody wants to move categories from a comma separated string in the app table, to a separate table all together.
22 lines
496 B
Java
22 lines
496 B
Java
package mock;
|
|
|
|
import android.test.mock.*;
|
|
import org.fdroid.fdroid.*;
|
|
|
|
public class MockCategoryResources extends MockResources {
|
|
|
|
@Override
|
|
public String getString(int id) {
|
|
if (id == R.string.category_all) {
|
|
return "All";
|
|
} else if (id == R.string.category_recentlyupdated) {
|
|
return "Recently Updated";
|
|
} else if (id == R.string.category_whatsnew) {
|
|
return "Whats New";
|
|
} else {
|
|
return "";
|
|
}
|
|
}
|
|
|
|
}
|