Search in sources :

Example 1 with Configuration

use of android.content.res.Configuration in project AndroidTraining by mixi-inc.

the class ProtonAccountAuthenticatorActivity method onConfigurationChanged.

@Override
public void onConfigurationChanged(Configuration newConfig) {
    Configuration oldConfig = getResources().getConfiguration();
    super.onConfigurationChanged(newConfig);
    mObserverManager.fire(new OnConfigurationChangedEvent(oldConfig, newConfig));
}
Also used : Configuration(android.content.res.Configuration) OnConfigurationChangedEvent(proton.inject.observer.event.OnConfigurationChangedEvent)

Example 2 with Configuration

use of android.content.res.Configuration in project AndroidTraining by mixi-inc.

the class ProtonActivity method onConfigurationChanged.

@Override
public void onConfigurationChanged(Configuration newConfig) {
    Configuration oldConfig = getResources().getConfiguration();
    super.onConfigurationChanged(newConfig);
    mObserverManager.fire(new OnConfigurationChangedEvent(oldConfig, newConfig));
}
Also used : Configuration(android.content.res.Configuration) OnConfigurationChangedEvent(proton.inject.observer.event.OnConfigurationChangedEvent)

Example 3 with Configuration

use of android.content.res.Configuration in project AndroidTraining by mixi-inc.

the class ProtonFragmentActivity method onConfigurationChanged.

@Override
public void onConfigurationChanged(Configuration newConfig) {
    Configuration oldConfig = getResources().getConfiguration();
    super.onConfigurationChanged(newConfig);
    mObserverManager.fire(new OnConfigurationChangedEvent(oldConfig, newConfig));
}
Also used : Configuration(android.content.res.Configuration) OnConfigurationChangedEvent(proton.inject.observer.event.OnConfigurationChangedEvent)

Example 4 with Configuration

use of android.content.res.Configuration in project AndroidTraining by mixi-inc.

the class ProtonLauncherActivity method onConfigurationChanged.

@Override
public void onConfigurationChanged(Configuration newConfig) {
    Configuration oldConfig = getResources().getConfiguration();
    super.onConfigurationChanged(newConfig);
    mObserverManager.fire(new OnConfigurationChangedEvent(oldConfig, newConfig));
}
Also used : Configuration(android.content.res.Configuration) OnConfigurationChangedEvent(proton.inject.observer.event.OnConfigurationChangedEvent)

Example 5 with Configuration

use of android.content.res.Configuration in project AndroidTraining by mixi-inc.

the class ProtonIntentService method onConfigurationChanged.

@Override
public void onConfigurationChanged(Configuration newConfig) {
    Configuration oldConfig = getResources().getConfiguration();
    super.onConfigurationChanged(newConfig);
    mObserverManager.fire(new OnConfigurationChangedEvent(oldConfig, newConfig));
}
Also used : Configuration(android.content.res.Configuration) OnConfigurationChangedEvent(proton.inject.observer.event.OnConfigurationChangedEvent)

Aggregations

Configuration (android.content.res.Configuration)824 RemoteException (android.os.RemoteException)158 Resources (android.content.res.Resources)152 Locale (java.util.Locale)112 DisplayMetrics (android.util.DisplayMetrics)88 Intent (android.content.Intent)76 IOException (java.io.IOException)69 Context (android.content.Context)64 Point (android.graphics.Point)48 NameNotFoundException (android.content.pm.PackageManager.NameNotFoundException)40 Rect (android.graphics.Rect)37 ArrayList (java.util.ArrayList)37 Test (org.junit.Test)29 AndroidRuntimeException (android.util.AndroidRuntimeException)28 View (android.view.View)27 ComponentName (android.content.ComponentName)25 Bundle (android.os.Bundle)25 IBinder (android.os.IBinder)24 WindowManager (android.view.WindowManager)24 Nullable (android.annotation.Nullable)22