Permalink
Browse files

Small cleanup.

  • Loading branch information...
1 parent 58e9f60 commit 68910ec05333824e931bd9323b6184138040c379 @hdweiss hdweiss committed Dec 8, 2012
@@ -42,9 +42,7 @@ public void setupFirstPage() {
createDropboxLogin();
}
- public View createDropboxLogin() {
- wizardView.removePagesAfter(1);
-
+ public View createDropboxLogin() {
View view = LayoutInflater.from(context).inflate(R.layout.wizard_dropbox, null);
dropboxAccountInfo = (TextView) view.findViewById(R.id.wizard_dropbox_accountinfo);
@@ -19,9 +19,7 @@ public void setupFirstPage() {
createNullConfig();
}
- public void createNullConfig() {
- wizardView.removePagesAfter(1);
-
+ public void createNullConfig() {
View view = LayoutInflater.from(context).inflate(
R.layout.wizard_null, null);
@@ -27,9 +27,7 @@ public void setupFirstPage() {
createSDcardFolderSelector();
}
- public View createSDcardFolderSelector() {
- wizardView.removePagesAfter(1);
-
+ public View createSDcardFolderSelector() {
View view = LayoutInflater.from(context).inflate(
R.layout.wizard_folder_pick_list, null);
@@ -32,9 +32,7 @@ public void setupFirstPage() {
createSSHConfig();
}
- public View createSSHConfig() {
- wizardView.removePagesAfter(1);
-
+ public View createSSHConfig() {
View view = LayoutInflater.from(context).inflate(
R.layout.wizard_ssh, null);
@@ -37,9 +37,7 @@ public void setupFirstPage() {
createUbuntuLogin();
}
- private View createUbuntuLogin() {
- wizardView.removePagesAfter(1);
-
+ private View createUbuntuLogin() {
View view = LayoutInflater.from(context).inflate(
R.layout.wizard_ubuntuone, null);
@@ -103,7 +101,7 @@ private View createUbuntuOneList() {
directoryAdapter.setDirectoryBrowser(directory);
- ListView folderList = (ListView) wizardView.findViewById(R.id.wizard_folder_list);
+ ListView folderList = (ListView) view.findViewById(R.id.wizard_folder_list);
folderList.setAdapter(directoryAdapter);
directoryAdapter.notifyDataSetChanged();
// debug
@@ -122,9 +120,7 @@ public void saveSettings() {
.getDefaultSharedPreferences(context);
SharedPreferences.Editor editor = appSettings.edit();
-
editor.putString("syncSource", "ubuntu");
-
editor.putString("ubuntuOnePath",
directoryAdapter.getCheckedDirectory() + "/");
@@ -26,6 +26,7 @@ public Wizard(WizardView wizardView, Context context) {
progress.setMessage(context.getString(R.string.please_wait));
progress.setTitle(context.getString(R.string.signing_in));
+ wizardView.removePagesAfter(1);
setupFirstPage();
}

0 comments on commit 68910ec

Please sign in to comment.