2014-02-11 07:34:01 +11:00
|
|
|
package mock;
|
|
|
|
|
2014-03-23 22:31:06 +11:00
|
|
|
import android.content.Context;
|
2015-04-07 11:58:22 +02:00
|
|
|
|
|
|
|
import org.fdroid.fdroid.R;
|
2014-02-11 07:34:01 +11:00
|
|
|
|
2014-03-23 22:31:06 +11:00
|
|
|
public class MockCategoryResources extends MockFDroidResources {
|
|
|
|
|
|
|
|
public MockCategoryResources(Context getStringDelegatingContext) {
|
|
|
|
super(getStringDelegatingContext);
|
|
|
|
}
|
2014-02-11 07:34:01 +11:00
|
|
|
|
|
|
|
@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 "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|