Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private void handleIntent(Intent intent) {
if (intent.hasExtra(EXTRA_AREA)) {
City city = CityManager.get(c).getCityByPubtranCity(c, intent.getStringExtra(EXTRA_AREA));
if (city != null) {
int minutes = intent.getIntExtra(EXTRA_MINUTES, 0);
intent.getIntExtra(EXTRA_MINUTES, 0);
//SL.get(AnalyticsService.class).trackEvent("pubtran", "on-start", "city", city.city, "minutes", String.valueOf(minutes));
Intent i = new Intent(c, CityTicketsActivity.class);
i.putExtra(CityTicketsActivity.EXTRA_CITY, city.city);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public void onClick(View v) {
@Override
public View newView(Context context, Cursor cursor, ViewGroup parent) {
final LayoutInflater li = LayoutInflater.from(context);
final Time validTo = FormatUtil.timeFrom3339(cursor.getString(iValidTo));
FormatUtil.timeFrom3339(cursor.getString(iValidTo));
View v;
final ViewHolder h = new ViewHolder();
if (cursor.getLong(iId) == mActiveId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
} catch (Exception e) {
DebugLog.e("cannot update database. Uninstall and install the app once again");
}
oldVersion = 11;
}
}

Expand Down Expand Up @@ -215,7 +214,6 @@ private void createDB(SQLiteDatabase db) {

private void createTableCities(SQLiteDatabase db) {
StringBuffer sql = new StringBuffer();
sql = new StringBuffer();
sql.append("CREATE TABLE ");
sql.append(CITY_TABLE_NAME);
sql.append(" (");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,14 @@ public synchronized Object getSystemService(String name) {
return mServicesInstances.get(name);
} else {
try {
Class<?> clazz = null;
Class<?> clazz;
if (mServicesImplementationsMapping.containsKey(name)) {
clazz = mServicesImplementationsMapping.get(name);
} else {
clazz = Class.forName(name);
}

Object serviceInstance = null;
Object serviceInstance;
try {
Constructor<?> constructor = clazz.getConstructor(Context.class);
serviceInstance = constructor.newInstance(getApplicationContext());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private JSONObject getVersion(boolean online) throws IOException, JSONException
private String readResult(InputStream is) throws IOException {
StringBuilder sb = new StringBuilder();
BufferedReader r = new BufferedReader(new InputStreamReader(is, "utf-8"), 1000);
String l = null;
String l;
while ((l = r.readLine()) != null) {
sb.append(l);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private ImageUtil() {}
public static Bitmap combineTwoImages(Context context, int backgroundResource, int color) {

Bitmap bmpBackground = null;
Bitmap big = null;
Bitmap big;
if (backgroundResource == 0) {
big = Bitmap.createBitmap(400, 400, Bitmap.Config.ARGB_8888);
} else {
Expand Down