This file contains hidden or 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
package com.ltroya.recipestracker.recipemain; | |
import com.ltroya.recipestracker.BaseTest; | |
import com.ltroya.recipestracker.BuildConfig; | |
import com.ltroya.recipestracker.api.RecipeSearchResponse; | |
import com.ltroya.recipestracker.api.RecipeService; | |
import com.ltroya.recipestracker.entities.Recipe; | |
import com.ltroya.recipestracker.libs.base.EventBus; | |
import com.ltroya.recipestracker.recipemain.events.RecipeMainEvent; |
This file contains hidden or 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
public class EventHandlerService extends Service implements OnIncomingCallListener { | |
private final String TAG = EventHandlerService.class.getSimpleName(); | |
private AbtoPhone abtoPhone; | |
@Override | |
public IBinder onBind(Intent intent) { | |
return null; | |
} | |
@Override |
This file contains hidden or 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
Converter<ResponseBody, Error> errorConverter = | |
ServiceGenerator.retrofit.responseBodyConverter(Error.class, new Annotation[0]); | |
try { | |
Error error = errorConverter.convert(response.errorBody()); | |
if (error.getCode().equals(ERROR_STATUS)) { | |
if (!inputUsername.requestFocus()) { | |
inputUsername.requestFocus(); | |
} | |
Toast.makeText(SignUpActivty.this, getString(R.string.sign_up_username_exists), Toast.LENGTH_LONG).show(); |
NewerOlder