Merge "Refactoring getPreferenceKey method" into ub-launcher3-burnaby-polish

This commit is contained in:
Sunny Goyal
2015-10-20 17:17:08 +00:00
committed by Android (Google) Code Review
11 changed files with 33 additions and 65 deletions
@@ -28,8 +28,7 @@ public class RotationPreferenceTest extends InstrumentationTestCase {
mDevice = UiDevice.getInstance(getInstrumentation());
mTargetContext = getInstrumentation().getTargetContext();
mTargetPackage = mTargetContext.getPackageName();
mPrefs = mTargetContext.getSharedPreferences(
LauncherAppState.getSharedPreferencesKey(), Context.MODE_PRIVATE);
mPrefs = Utilities.getPrefs(mTargetContext);
mOriginalRotationValue = mPrefs.getBoolean(Utilities.ALLOW_ROTATION_PREFERENCE_KEY, false);
}