mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-23 14:17:15 +00:00
Remove unnecesary interface modifiers and redundant local variables
This commit is contained in:
parent
60d90993e3
commit
5af3f04d4d
7 changed files with 9 additions and 14 deletions
|
|
@ -105,7 +105,7 @@ public class AboutActivity extends AppCompatActivity {
|
|||
|
||||
return new AboutFragment();
|
||||
case 1:
|
||||
Fragment tab1 = new LibsBuilder()
|
||||
return new LibsBuilder()
|
||||
//Pass the fields of your application to the lib so it can find all external lib information
|
||||
.withFields(R.string.class.getFields())
|
||||
.withActivityStyle(Libs.ActivityStyle.LIGHT_DARK_TOOLBAR)
|
||||
|
|
@ -117,8 +117,6 @@ public class AboutActivity extends AppCompatActivity {
|
|||
.withAboutVersionShownName(true)
|
||||
.withAnimations(true)
|
||||
.fragment();
|
||||
|
||||
return tab1;
|
||||
case 2:
|
||||
PaperboyBuilder builder = new PaperboyBuilder(AboutActivity.this)
|
||||
.setViewType(ViewTypes.HEADER)
|
||||
|
|
|
|||
|
|
@ -41,9 +41,7 @@ public class ContentCache {
|
|||
final QuestContent quest = new Select().from(QuestContent.class).where(Condition.column("key").eq(key)).querySingle();
|
||||
|
||||
if (quest != null) {
|
||||
QuestBoss boss = new Select().from(QuestBoss.class).where(Condition.column("key").eq(key)).querySingle();
|
||||
quest.boss = boss;
|
||||
|
||||
quest.boss = new Select().from(QuestBoss.class).where(Condition.column("key").eq(key)).querySingle();
|
||||
cb.GotQuest(quest);
|
||||
} else {
|
||||
|
||||
|
|
|
|||
|
|
@ -325,7 +325,7 @@ public class LoginActivity extends AppCompatActivity
|
|||
.putString(getString(R.string.SP_APIToken), key)
|
||||
.putString(getString(R.string.SP_userID), user)
|
||||
.commit();
|
||||
if (ans != true) {
|
||||
if (!ans) {
|
||||
throw new Exception("PB_string_commit");
|
||||
}
|
||||
startMainActivity();
|
||||
|
|
|
|||
|
|
@ -38,8 +38,8 @@ public class HabitRPGUserCallback implements Callback<HabitRPGUser> {
|
|||
}
|
||||
|
||||
public interface OnUserReceived {
|
||||
public void onUserReceived(HabitRPGUser user);
|
||||
void onUserReceived(HabitRPGUser user);
|
||||
|
||||
public void onUserFail();
|
||||
void onUserFail();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@ public class TaskScoringCallback implements Callback<TaskDirectionData> {
|
|||
}
|
||||
|
||||
public interface OnTaskScored {
|
||||
public void onTaskDataReceived(TaskDirectionData data);
|
||||
void onTaskDataReceived(TaskDirectionData data);
|
||||
|
||||
public void onTaskScoringFailed();
|
||||
void onTaskScoringFailed();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,8 +26,7 @@ public class BitmapUtils {
|
|||
if (!f.exists()) {
|
||||
return null;
|
||||
}
|
||||
Bitmap tmp = BitmapFactory.decodeFile(filename);
|
||||
return tmp;
|
||||
return BitmapFactory.decodeFile(filename);
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ public enum TaskDirection {
|
|||
up("up"),
|
||||
down("down");
|
||||
private final String dir;
|
||||
private TaskDirection(String dir) {
|
||||
TaskDirection(String dir) {
|
||||
this.dir=dir;
|
||||
}
|
||||
public String toString() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue