diff --git a/res/drawable/intro2.png b/res/drawable/intro2.png
deleted file mode 100644
index 85499f3f6..000000000
Binary files a/res/drawable/intro2.png and /dev/null differ
diff --git a/res/drawable/intro3.png b/res/drawable/intro3.png
deleted file mode 100644
index 95e90e399..000000000
Binary files a/res/drawable/intro3.png and /dev/null differ
diff --git a/res/drawable/intro4.png b/res/drawable/intro4.png
deleted file mode 100644
index 4fdf4a5b2..000000000
Binary files a/res/drawable/intro4.png and /dev/null differ
diff --git a/res/drawable/intro5.png b/res/drawable/intro5.png
deleted file mode 100644
index 01a4b03f0..000000000
Binary files a/res/drawable/intro5.png and /dev/null differ
diff --git a/res/drawable/intro6.png b/res/drawable/intro6.png
deleted file mode 100644
index bfcea242b..000000000
Binary files a/res/drawable/intro6.png and /dev/null differ
diff --git a/res/drawable/intro7.png b/res/drawable/intro7.png
deleted file mode 100644
index d77e64c04..000000000
Binary files a/res/drawable/intro7.png and /dev/null differ
diff --git a/res/drawable/paging_indicator.xml b/res/drawable/paging_indicator.xml
deleted file mode 100644
index 397617bb0..000000000
--- a/res/drawable/paging_indicator.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/res/drawable/paging_indicator_default.xml b/res/drawable/paging_indicator_default.xml
deleted file mode 100644
index e395de6ab..000000000
--- a/res/drawable/paging_indicator_default.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
- -
-
-
-
-
-
-
\ No newline at end of file
diff --git a/res/drawable/paging_indicator_selected.xml b/res/drawable/paging_indicator_selected.xml
deleted file mode 100644
index a5c40f6f4..000000000
--- a/res/drawable/paging_indicator_selected.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
- -
-
-
-
-
-
-
\ No newline at end of file
diff --git a/res/layout/welcome_activity.xml b/res/layout/welcome_activity.xml
index b84638274..a12394190 100644
--- a/res/layout/welcome_activity.xml
+++ b/res/layout/welcome_activity.xml
@@ -1,74 +1,67 @@
-
-
+ android:layout_height="0dp"/>
-
+
+
+ android:gravity="center"
+ android:padding="16dp"
+ android:text="@string/app_name"
+ android:textSize="22sp"
+ android:textStyle="bold"/>
-
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:paddingStart="16dp"
+ android:paddingEnd="16dp"
+ android:paddingBottom="24dp"
+ android:text="@string/welcome_intro1_message"
+ android:textSize="18sp"/>
+ android:text="@string/welcome_start_messaging" />
+ android:layout_height="0dp"/>
+ android:textSize="16sp"
+ android:textColor="@color/delta_accent"/>
-
-
-
+
diff --git a/res/layout/welcome_page.xml b/res/layout/welcome_page.xml
deleted file mode 100644
index c75eb74cc..000000000
--- a/res/layout/welcome_page.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/res/values/strings.xml b/res/values/strings.xml
index f947789f3..777c77a46 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -308,20 +308,7 @@
- Delta Chat
The messenger with the broadest audience in the world. Free and independent.
- Independent
- There is no Delta Chat server. The app only uses your mail server.
- Fast
- Push messages in seconds.\nRapid interface.
- Powerful
- Unlimited chats, images, videos, audio messages and more. Multi-client capable.
- Free
- Delta Chat is a free software. No ad or subscription. No vendor lock-in.
- Encrypted
- Encrypted with all common algorithms. Messages stay on your servers.
- Trustworthy
- Delta Chat is safe for business use, compatible and standards-based.
Start messaging
Log in
Log in to your server
diff --git a/src/org/thoughtcrime/securesms/WelcomeActivity.java b/src/org/thoughtcrime/securesms/WelcomeActivity.java
index 60f14bf49..dc5c4cd76 100644
--- a/src/org/thoughtcrime/securesms/WelcomeActivity.java
+++ b/src/org/thoughtcrime/securesms/WelcomeActivity.java
@@ -28,63 +28,8 @@ import org.thoughtcrime.securesms.util.views.ProgressDialog;
import java.io.File;
-/**
- * The welcome activity. Provides the user with useful information about the app.
- * It also allows the triggering of the backup import process.
- *
- * @author Daniel Böhrs
- */
public class WelcomeActivity extends BaseActionBarActivity implements DcEventCenter.DcEventDelegate {
- private class WelcomePagerAdapter extends PagerAdapter {
-
- private static final int PAGE_COUNT = 7;
-
- private Context context;
-
- private int icons[] = new int[]{R.drawable.intro1, R.drawable.intro2, R.drawable.intro3, R.drawable.intro4, R.drawable.intro5, R.drawable.intro6, R.drawable.intro7};
-
- private int titles[] = new int[]{R.string.welcome_intro1_headline, R.string.welcome_intro2_headline, R.string.welcome_intro3_headline, R.string.welcome_intro4_headline, R.string.welcome_intro5_headline, R.string.welcome_intro6_headline, R.string.welcome_intro7_headline};
-
- private int messages[] = new int[]{R.string.welcome_intro1_message, R.string.welcome_intro2_message, R.string.welcome_intro3_message, R.string.welcome_intro4_message, R.string.welcome_intro5_message, R.string.welcome_intro6_message, R.string.welcome_intro7_message};
-
- WelcomePagerAdapter(Context context) {
- this.context = context;
- }
-
- @NonNull
- @Override
- public Object instantiateItem(@NonNull ViewGroup container, int position) {
- LayoutInflater inflater = LayoutInflater.from(context);
- ViewGroup layout = (ViewGroup) inflater.inflate(R.layout.welcome_page, container, false);
- TextView welcomeHeader = layout.findViewById(R.id.welcome_header);
- welcomeHeader.setText(titles[position]);
- TextView welcomeSubHeader = layout.findViewById(R.id.welcome_sub_header);
- welcomeSubHeader.setText(messages[position]);
- ImageView welcomeIcon = layout.findViewById(R.id.welcome_icon);
- welcomeIcon.setImageResource(icons[position]);
- container.addView(layout);
- return layout;
- }
-
- @Override
- public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Object object) {
- container.removeView((View) object);
- }
-
-
- @Override
- public int getCount() {
- return PAGE_COUNT;
- }
-
- @Override
- public boolean isViewFromObject(@NonNull View view, @NonNull Object object) {
- return view == object;
- }
-
- }
-
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
@@ -93,8 +38,8 @@ public class WelcomeActivity extends BaseActionBarActivity implements DcEventCen
initializeResources();
ApplicationDcContext dcContext = DcHelper.getContext(this);
- dcContext.eventCenter.addObserver(this, DcContext.DC_EVENT_CONFIGURE_PROGRESS);
- dcContext.eventCenter.addObserver(this, DcContext.DC_EVENT_IMEX_PROGRESS);
+ dcContext.eventCenter.addObserver(DcContext.DC_EVENT_CONFIGURE_PROGRESS, this);
+ dcContext.eventCenter.addObserver(DcContext.DC_EVENT_IMEX_PROGRESS, this);
}
@Override
@@ -109,16 +54,10 @@ public class WelcomeActivity extends BaseActionBarActivity implements DcEventCen
}
private void initializeResources() {
- ViewPager viewPager = findViewById(R.id.welcome_viewpager);
- viewPager.setAdapter(new WelcomePagerAdapter(this));
- TabLayout tabLayout = findViewById(R.id.welcome_page_tab_layout);
- tabLayout.setupWithViewPager(viewPager, true);
Button skipButton = findViewById(R.id.skip_button);
View backupText = findViewById(R.id.backup_text);
- View backupImage = findViewById(R.id.backup_icon);
skipButton.setOnClickListener((view) -> startRegistrationActivity());
backupText.setOnClickListener((view) -> startImportBackup());
- backupImage.setOnClickListener((view) -> startImportBackup());
}
private void startRegistrationActivity() {