コード例 #1
0
 /** {@inheritDoc} */
 @Override
 protected void onConfigurationChanged(Configuration newConfig) {
   super.onConfigurationChanged(newConfig);
   if (LockPatternKeyguardView.DEBUG_CONFIGURATION) {
     Log.w(TAG, "***** LOCK CONFIG CHANGING", new RuntimeException());
     Log.v(TAG, "Cur orient=" + mCreationOrientation + ", new config=" + newConfig);
   }
   updateConfiguration();
 }
コード例 #2
0
 @Override
 protected void onAttachedToWindow() {
   super.onAttachedToWindow();
   if (LockPatternKeyguardView.DEBUG_CONFIGURATION) {
     Log.v(TAG, "***** LOCK ATTACHED TO WINDOW");
     Log.v(
         TAG,
         "Cur orient="
             + mCreationOrientation
             + ", new config="
             + getResources().getConfiguration());
   }
   updateConfiguration();
 }