Skip to content

Instantly share code, notes, and snippets.

{
"status":0,
"result":{
"user":{
"hasDevice":true,
"energyUploads":[
0,
0.1,
0.2,
0.2,
/*
* This is the source code of Telegram for Android v. 1.3.2.
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Nikolai Kudashov, 2013.
*/
package org.telegram.ui;
package com.blacksquared.changers.api.task.statistic;
import com.blacksquared.changers.App;
import com.blacksquared.changers.Constants;
import com.blacksquared.changers.api.ApiSettings;
import com.blacksquared.changers.api.request.StatisticsApi;
import com.blacksquared.changers.api.task.ApiTask;
import com.blacksquared.changers.event.rank.RankCityEvent;
import com.blacksquared.changers.model.dto.statistic.StatisticRankCitiesDTO;
apply plugin: 'com.android.application'
apply from: '../gradle.properties'
android {
compileSdkVersion 21
buildToolsVersion '21.1.1'
defaultConfig {
applicationId "com.blacksquared.changers"
minSdkVersion 15
targetSdkVersion 21
apply plugin: 'com.android.application'
apply plugin: 'crashlytics'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
package com.blacksquared.changers.fragment.auth;
import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.LinearLayout;
package com.blacksquared.changers.manager;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
package com.blacksquared.changers.activity;
import java.util.Locale;
import android.annotation.TargetApi;
import android.app.ActionBar;
import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Intent;
private boolean checkPassword() {
boolean isResult = true;
if (mFirstName.getText().toString().isEmpty() || mFirstName.getText().toString().length() < 2) {
isResult = false;
mFirstName
.setBackgroundResource(R.drawable.rededittext_edit_text_holo_light);
} else {
mFirstName
.setBackgroundResource(R.drawable.greenedittext_edit_text_holo_light);
package com.blacksquared.changers.model;
import android.content.SharedPreferences;
/**
* Created by Ed
*/
public class CachedValue<T> {
private static SharedPreferences sharedPref;