Skip to content

Instantly share code, notes, and snippets.

View humbledroid's full-sized avatar

Sidhant Rajora humbledroid

View GitHub Profile
package androidx.databinding;
/**
* Observable classes provide a way in which data bound UI can be notified of changes.
* {@link ObservableList} and {@link ObservableMap} also provide the ability to notify when
* changes occur. ObservableField, ObservableParcelable, ObservableBoolean, ObservableByte,
* ObservableShort, ObservableInt, ObservableLong, ObservableFloat, and ObservableDouble provide
* a means by which properties may be notified without implementing Observable.
* <p>
* An Observable object should notify the {@link OnPropertyChangedCallback} whenever
package androidx.databinding;
import androidx.annotation.NonNull;
/**
* A convenience class that implements {@link android.databinding.Observable} interface and provides
* {@link #notifyPropertyChanged(int)} and {@link #notifyChange} methods.
*/
public class BaseObservable implements Observable {
private transient PropertyChangeRegistry mCallbacks;
package com.death.timberdemo;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import timber.log.Timber;
public class MainActivity extends AppCompatActivity {
private static final String TAG = MainActivity.class.getSimpleName();
package com.death.timberdemo;
import android.app.Application;
import timber.log.Timber;
public class ApplicationController extends Application {
@Override
public void onCreate() {
super.onCreate();
-assumenosideeffects class android.util.Log {
public static *** d(...);
public static *** v(...);
public static *** e(...);
}
package com.death.timberdemo;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
public class MainActivity extends AppCompatActivity {
private static final String TAG = MainActivity.class.getSimpleName();
@Override
package com.death.timberdemo;
import android.app.Application;
public class ApplicationController extends Application {
public static boolean isDebug;
@Override
public void onCreate() {
super.onCreate();