-
This commit is contained in:
		| @@ -19,8 +19,7 @@ | ||||
|         <activity | ||||
|             android:name="de.server47.messageexport.MainActivity" | ||||
|             android:exported="true" | ||||
|             android:label="@string/app_name" | ||||
|             android:theme="@style/Theme.RcsExport.NoActionBar"> | ||||
|             android:label="@string/app_name"> | ||||
|             <intent-filter> | ||||
|                 <action android:name="android.intent.action.MAIN" /> | ||||
|  | ||||
|   | ||||
| @@ -37,6 +37,8 @@ public class MainActivity extends Activity | ||||
|  | ||||
|     final static int requestCodeExport = 815; | ||||
|  | ||||
|     long messageCount = 0; | ||||
|  | ||||
|     @Override | ||||
|     protected void onCreate(@Nullable Bundle savedInstanceState) | ||||
|     { | ||||
| @@ -96,6 +98,8 @@ public class MainActivity extends Activity | ||||
|  | ||||
|         if(response.size() > 0) | ||||
|         { | ||||
|             messageCount = response.size(); | ||||
|  | ||||
|             StringBuilder export = new StringBuilder(); | ||||
|  | ||||
|             export.append("<?xml-stylesheet type=\"text/xsl\" href=\"sms.xsl\"?>"); | ||||
| @@ -177,7 +181,7 @@ public class MainActivity extends Activity | ||||
|                 out.write(content.getBytes()); | ||||
|                 out.close(); | ||||
|  | ||||
|                 Toast.makeText(MainActivity.this, "Export complete.", Toast.LENGTH_LONG).show(); | ||||
|                 Toast.makeText(MainActivity.this, "Export complete. " + String.valueOf(messageCount) + " messages have been exported.", Toast.LENGTH_LONG).show(); | ||||
|             } | ||||
|             catch (IOException e) | ||||
|             { | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| <resources> | ||||
|     <string name="app_name">MessageExport</string> | ||||
|     <string name="app_name">Message Export</string> | ||||
|     <string name="action_settings">Settings</string> | ||||
|     <!-- Strings used for fragments for navigation --> | ||||
|     <string name="first_fragment_label">First Fragment</string> | ||||
|   | ||||
| @@ -14,11 +14,6 @@ | ||||
|         <!-- Customize your theme here. --> | ||||
|     </style> | ||||
|  | ||||
|     <style name="Theme.RcsExport.NoActionBar"> | ||||
|         <item name="windowActionBar">false</item> | ||||
|         <item name="windowNoTitle">true</item> | ||||
|     </style> | ||||
|  | ||||
|     <style name="Theme.SmsExport.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" /> | ||||
|  | ||||
|     <style name="Theme.SmsExport.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" /> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user