
* Remove all wildcard imports * Reorder alphabetically and by source * Remove unused imports
27 lines
628 B
Java
27 lines
628 B
Java
package mock;
|
|
|
|
import android.content.Context;
|
|
|
|
import org.fdroid.fdroid.R;
|
|
|
|
public class MockCategoryResources extends MockFDroidResources {
|
|
|
|
public MockCategoryResources(Context getStringDelegatingContext) {
|
|
super(getStringDelegatingContext);
|
|
}
|
|
|
|
@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 "";
|
|
}
|
|
}
|
|
|
|
}
|