mirror of
https://github.com/nerzhul/ownCloud-SMS-App.git
synced 2025-06-10 17:36:16 +00:00
Restore the default SMS app at the end
This commit is contained in:
parent
184d2e12fd
commit
13ad6237fe
@ -117,11 +117,6 @@ public class RestoreMessagesActivity extends AppCompatActivity {
|
|||||||
new ASyncSMSRecovery.SMSRecoveryTask(me, _account).execute();
|
new ASyncSMSRecovery.SMSRecoveryTask(me, _account).execute();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
/*Intent finalIntent = new Intent(Telephony.Sms.Intents.ACTION_CHANGE_DEFAULT);
|
|
||||||
finalIntent.putExtra(Telephony.Sms.Intents.EXTRA_PACKAGE_NAME, _defaultSmsApp);
|
|
||||||
startActivity(finalIntent);*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void notifyIncompatibleVersion() {
|
private void notifyIncompatibleVersion() {
|
||||||
@ -158,6 +153,10 @@ public class RestoreMessagesActivity extends AppCompatActivity {
|
|||||||
Log.i(RestoreMessagesActivity.TAG, "Sync is done, updating interface");
|
Log.i(RestoreMessagesActivity.TAG, "Sync is done, updating interface");
|
||||||
findViewById(R.id.progressbar_restore).setVisibility(View.INVISIBLE);
|
findViewById(R.id.progressbar_restore).setVisibility(View.INVISIBLE);
|
||||||
findViewById(R.id.tv_restore_finished).setVisibility(View.VISIBLE);
|
findViewById(R.id.tv_restore_finished).setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
|
Intent finalIntent = new Intent(Telephony.Sms.Intents.ACTION_CHANGE_DEFAULT);
|
||||||
|
finalIntent.putExtra(Telephony.Sms.Intents.EXTRA_PACKAGE_NAME, _defaultSmsApp);
|
||||||
|
startActivity(finalIntent);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final String TAG = RestoreMessagesActivity.class.getSimpleName();
|
private static final String TAG = RestoreMessagesActivity.class.getSimpleName();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user